1. Erwin de Wolff
  2. Wishlist
  3. Wednesday, 17 December 2014
  4.  Subscribe via email
Hi Daniel,

I have a question about my customized version I have for Hotspots.
Currently I'm modifying com_hotspots\helpers_hotspot.php in order to get more information out of the database into the marker information window.

The part I'm modifying is:

public static function prepareHotspotForJsonOutput($hotspot, $users = array())
{
$description = preg_replace("@[\\r|\\n|\\t]+@", '', $hotspot->description_small);
$address = self::formattedAddress($hotspot);
$jsonHotspot = array(
'id' => (int) $hotspot->hotspots_id,
'catid' => (int) $hotspot->catid,
'lat' => (float) $hotspot->gmlat,
'lng' => (float) $hotspot->gmlng,
'title' => $hotspot->name,
'cutDescription' => CompojoomHtmlString::truncateComplex($description, 100),
'description' => $description,
'linkDescription' => $hotspot->description,
'street' => $hotspot->street,

);

I added the variable linkDescription. The reason that I'm doing this, is that in my marker description a link is added to the belonging article on the website. This link is put in the marker description as a function of "read-more", the part below "read-more" is automaticly split up and stored in the $hotspot->description field. Since I need that part in the marker-window, I added this in order to get the information from the database.

I was wondering, would it be possible to implement this database in the helper.php file for future releases?

Kind Regards,

Erwin
Responses (6)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now

Last questions

Complete Uninstall to Work in J4??
We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
3 Replies
Posted on Tuesday, 30 April 2024
  • New
  • verschiedene URL's für Kursübersicht einer Kategor
    Hallo, ich habe eine Frage in Bezug auf SEO: ein externer Spezialist macht die...
    1 Replies
    Posted on Monday, 29 April 2024
  • New
  • Google no index für bestimmte Seiten/Details
    Hallo ich habe eine kleine Frage: wo kann ich einstellen, dass Google die Seite...
    1 Replies
    Posted on Wednesday, 24 April 2024
  • New
  • Changes to Submission Form?
    Are you able to make changes to the Hotspot submission form? There are several f...
    0 Replies
    Posted on Friday, 26 April 2024
  • New
  • Question regarding custom fields
    How do I access custom fields after I have created them?...
    0 Replies
    Posted on Wednesday, 24 April 2024
  • New
    • #custom fields