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

J5 compatibility for Hotspots
Hi guys, Just started to update my old J3x website. Is there J5 compatibility p...
2 Replies
Posted on Monday, 24 February 2025
  • #Hotspots
  • #hotspots Joomla 5
error message when adding/cofiguring email address
When configuring the email plugin that send a email message to admin when a new ...
0 Replies
Posted on Friday, 09 May 2025
CMigrator: Path from Drupal 6 to J5?
(Category s/b CMigrator, but didn't see it on the list) I'm interested in usi...
0 Replies
Posted on Monday, 28 April 2025
Dowload all Hotspots entries
Hi there, I'm looking for a way to dowload all the Hotspots entries. I've got t...
0 Replies
Posted on Sunday, 06 April 2025
  • #kml
  • #download
Set number of hotspots / user groups
Hi, I'm working with Hotspots for my new website and I love it! After trying ...
0 Replies
Posted on Monday, 31 March 2025