- Posts: 121
- Thank you received: 1
Adding full address to TimeLine layout
- ozwest
- Topic Author
- Offline
- Premium Member
Less
More
5 years 2 months ago #128496
by ozwest
Adding full address to TimeLine layout was created by ozwest
I am changing the TimeLine layout for the events. Here is a link of the page that shows some events with my overrides to the timeline layout.
holisticevents.com.au/view-events/worksh...es-seminars/victoria
At the moment there is only the location name visible but I would like to display the whole address. I found the following code which I think needs to be altered and I changed it to:
<?php
if ($event->location_id)
{
$location = $event->location & $event->address;
?>
</br>
<i class="<?php echo $iconMapMakerClass; ?>"></i>
<?php
if ($event->location_address)
{
if ($location->image || EventbookingHelper::isValidMessage($location->description))
{
?>
<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=map&location_id='.$event->location_id.'&Itemid='.$Itemid); ?>"><span><?php echo $event->location_name ; ?></span></a>
<?php
}
else
{
?>
<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=map&location_id='.$event->location_id.'&tmpl=component'); ?>" class="eb-colorbox-map"><span><?php echo $event->location_name ; ?></span></a>
<?php
}
}
else
{
echo $event->location_name;
}
?>
</p>
<?php
}
?>
Thank you
holisticevents.com.au/view-events/worksh...es-seminars/victoria
At the moment there is only the location name visible but I would like to display the whole address. I found the following code which I think needs to be altered and I changed it to:
<?php
if ($event->location_id)
{
$location = $event->location & $event->address;
?>
</br>
<i class="<?php echo $iconMapMakerClass; ?>"></i>
<?php
if ($event->location_address)
{
if ($location->image || EventbookingHelper::isValidMessage($location->description))
{
?>
<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=map&location_id='.$event->location_id.'&Itemid='.$Itemid); ?>"><span><?php echo $event->location_name ; ?></span></a>
<?php
}
else
{
?>
<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=map&location_id='.$event->location_id.'&tmpl=component'); ?>" class="eb-colorbox-map"><span><?php echo $event->location_name ; ?></span></a>
<?php
}
}
else
{
echo $event->location_name;
}
?>
</p>
<?php
}
?>
Thank you
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
5 years 2 months ago #128498
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding full address to TimeLine layout
Hello
Just echo $event->location_address; and it will display address of the location. You will need to place that code to the section you want to display address of location
Tuan
Just echo $event->location_address; and it will display address of the location. You will need to place that code to the section you want to display address of location
Tuan
Please Log in or Create an account to join the conversation.
- ozwest
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 121
- Thank you received: 1
5 years 2 months ago #128500
by ozwest
Replied by ozwest on topic Adding full address to TimeLine layout
Wonderful, done and it is displaying nicely.
Thank you Tuan
Thank you Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
5 years 2 months ago #128502
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding full address to TimeLine layout
Great. Congratulations !
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.