How do I remove [View Map][Get Directions]

  • Len Bytheway
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #71836 by Len Bytheway
How do I remove [View Map][Get Directions] was created by Len Bytheway
I am new to Events Bookings, and a beginner with Joomla.
I am creating a site that lists all manner of events for a particular community across Australia (and beyond). I have created standard locations that are the Australian State names so we can search by state.
I don't want street addresses, just State and Country, which means the maps and directions have no value.
When I create a menu to view by Location I get a heading:
Events from location : South Australia[View Map][Get Directions]
How can I turn off or hide those links?

=>Len

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago - 9 years 6 months ago #71837 by James Riley
Replied by James Riley on topic How do I remove [View Map][Get Directions]
I don't see any setting for controlling this in the config panel, so I think you'll have to make a quick code edit.
In the file [ /components/com_eventbooking/view/location/tmpl/default.php ] look for:
Code:
<h1 class="eb-page-heading"><?php echo JText::sprintf('EB_EVENTS_FROM_LOCATION', $this->location->name); ?><a href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=map&location_id='.$this->location->id.'&tmpl=component&format=html'); ?>" title="<?php echo $this->location->name ; ?>" class="eb-colorbox-map view_map_link"><?php echo JText::_('EB_VIEW_MAP'); ?></a><a class="view_map_link" href="<?php echo $getDirectionLink ; ?>" target="_blank"><?php echo JText::_('EB_GET_DIRECTION'); ?></a></h1>
and replace it with:
Code:
<h1 class="eb-page-heading"><?php echo JText::sprintf('EB_EVENTS_FROM_LOCATION', $this->location->name); ?> /* ******** REMOVED TO DISABLE MAP LINKS ******** <a href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=map&location_id='.$this->location->id.'&tmpl=component&format=html'); ?>" title="<?php echo $this->location->name ; ?>" class="eb-colorbox-map view_map_link"><?php echo JText::_('EB_VIEW_MAP'); ?></a><a class="view_map_link" href="<?php echo $getDirectionLink ; ?>" target="_blank"><?php echo JText::_('EB_GET_DIRECTION'); ?></a> ******** */ </h1>
If you save this modified file to [ /templates/YOUR_TEMPLATE/html/com_eventbooking/location/default.php ], then you won't have to apply the change again every time you upgrade EB to the next version. However, if there are any major changes that the Devs make to this file when adding new features, then you'll need to patch the new version of the file with this same code change and resave. I don't think this file receives updates very often through :)

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Last edit: 9 years 6 months ago by James Riley.
The following user(s) said Thank You: Tuan Pham Ngoc

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc