×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Adding Custom Fields to default_infowindowmarker

Adding Custom Fields to default_infowindowmarker 9 years 7 months ago #30987

  • David E
  • David E's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
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>
								</dl>
							<?php endif; ?>
						<?php endif; ?>
					<?php endforeach; ?>
				</div>
			<?php endif; ?>

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

Adding Custom Fields to default_infowindowmarker 9 years 7 months ago #30995

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Is certainly is, but not the way you do it. The data for each hotspots in the list is loaded per ajax. So the information about the custom fields should be present in the ajax request and then we have to render it in the appropriate position.
What you are trying to do is on our to-do list and it will come with one of the next releases.
Regards,
Daniel

Adding Custom Fields to default_infowindowmarker 9 years 2 months ago #32247

  • Toropov Dmitry
  • Toropov Dmitry's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hello. This issue is not resolved?
How to add a field? I don't use a detailed page )

Adding Custom Fields to default_infowindowmarker 9 years 2 months ago #32264

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
This is not coded yet. It's on the todo for version 5.2
  • Page:
  • 1
Time to create page: 0.113 seconds