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