1. David E
  2. Tricks
  3. Thursday, 23 April 2015
  4.  Subscribe via email
Hi Daniel,

Is it possible for me to add the custom field data to the default info window marker. So when a marker is selected on the map the the information window shows the custom data information?

I have tried adding the following to default_infowindowmarker.php which I copied out into my template location: /templates/templatename/html/com_hotspots/hotspots/ :
<?php if($this->hotspot->customfields && $this->customFields) : ?>
<div class="hotspots-customfields">
<h6><?php echo JText::_('COM_HOTSPOTS_CUSTOM_FIELDS'); ?></h6>
<?php foreach($this->hotspot->customfields as $key => $customFields): ?>
<?php if(isset($this->customFields[$key])) : ?>
<?php if($customFields): ?>
<dl class="dl-horizontal">
<dt><?php echo JText::_($this->customFields[$key]->title); ?></dt>
<dd><?php echo CompojoomFormCustom::render($this->customFields[$key], $customFields); ?></dd>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>

But still nothing displays. Is what I am trying to achieve possible?
Thank you.
Responses (3)

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

Paypal Zahlungsabwicklung
Seit kurzem funktioniert leider die Zahlung per paypal nichtmehr so wie sie soll...
0 Replies
Posted on Sunday, 26 June 2022
  • New
  • Matukip REST API
    Hi, I read in an old Changelog, that Matukio has a REST API, but I was unable t...
    0 Replies
    Posted on Thursday, 23 June 2022
    • #api
    Problem with map view
    Hi, we have problem with Map viewing, can you see this? https://zsbozp.vubp.cz/o...
    1 Replies
    Posted on Wednesday, 01 June 2022
    • #view
    custom checkbox field
    is there an option to add custom checkbox field that on the back-end we will che...
    5 Replies
    Posted on Monday, 13 June 2022
    Exporting Markers and Importing via PHPMyAdmin
    This is not a question, unless someone reading this knows a better way to do thi...
    4 Replies
    Posted on Monday, 22 July 2019
    • #Export
    • #import
    • #phpmyadmin
    • #markers