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

Veranstaltung im Frontend sichtbar obwohl nicht ve
Hallo, folgendes Problem stellt sich mir: Wenn ich eine Veranstaltung dupl...
4 Replies
Posted on Friday, 09 February 2024
Suche bei der Matukio - Fehler Ö Ä Ü..
Hallo, evtl. könnt ihr mir weiterhelfen. Bei mir funktioniert die suche bei ...
3 Replies
Posted on Wednesday, 15 May 2024
  • New
  • When is CComment compatible with Joomla 5?
    When is CComment compatible with Joomla 5?...
    4 Replies
    Posted on Tuesday, 05 December 2023
    • #CComment
    • #Joomla 5
    _MATUKIO_NO_EVENTS appears in the frontend if no e
    Hello, there ist still the problem, that on the frontpage appears COM_MATUKIO...
    2 Replies
    Posted on Sunday, 12 May 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...
    3 Replies
    Posted on Monday, 29 April 2024