I would like to show map in modal window in list view. In record I have this:
<?php if(isset($item->fields_by_id[ID])): ?>
<a href="#field-rslt-ID" data-toggle="modal">Show map</a>
<div id="<?php echo 'field-rslt-'.$item->fields_by_id[ID]->id; ?>" class="<?php echo $item->fields_by_id[ID]->params->get('core.field_class');?><?php echo ($item->fields_by_id[ID]->params->get('core.label_break') > 1 ? ' line-brk' : NULL) ?> modal hide fade" tabindex="-1" role="dialog">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel"><?php echo $item->title?> Map</h3>
</div>
<div class="modal-body">
<p><?php echo $item->fields_by_id[ID]->result; ?></p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<?php endif; ?>
But for list view this doesn't work. The problem is it show only the same map in all listings (including title). Does anyone has any suggestions?
I would like to show map in modal window in list view. In record I have this:
But for list view this doesn't work. The problem is it show only the same map in all listings (including title). Does anyone has any suggestions?