- Posts: 312
- Thank you received: 19
Need to output the location name on —> view-register layout-default with no link
- Patrick Toulze
- Topic Author
- Offline
- Elite Member
Less
More
3 years 6 months ago - 3 years 6 months ago #144678
by Patrick Toulze
Need to output the location name on —> view-register layout-default with no link was created by Patrick Toulze
I need to output the location name on —> body class —> view-register layout-default with no lightbox link
I know where to override but my php call output nothing.
I base my php override by copying EB code snippets and sometime modify it to my ability — I’m not a coder
This is what I have so far;
Override in —> Template > html > com_eventbooking > register > default.php
Note: I keep the lightbox link in this code...
PHP
The language string work (JText Location) but nothing output for the location name ?
Thanks in advance for your help!
I know where to override but my php call output nothing.
I base my php override by copying EB code snippets and sometime modify it to my ability — I’m not a coder
This is what I have so far;
Override in —> Template > html > com_eventbooking > register > default.php
Note: I keep the lightbox link in this code...
PHP
Code:
<?php /*?>GRAF put Location Top Registration Form<?php */?>
<div class="register-location-container">
<div class="left-div-text"> <strong> <?php echo JText::_('EB_LOCATION'); ?> :</strong></div>
<div class="right-div-location">
<?php
if ($event->location_address)
{
?>
<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;
}
?>
</div>
</div>
<?php /*?>END GRAF put Location Top Registration Form<?php */?>
The language string work (JText Location) but nothing output for the location name ?
Thanks in advance for your help!
Last edit: 3 years 6 months ago by Patrick Toulze.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 6 months ago #144688
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Need to output the location name on —> view-register layout-default with no link
In that file, the simplest way to display location name would be using this code:
Code:
if (!empty($replaces['location_name']))
{
echo $replaces['location_name'];
}
The following user(s) said Thank You: Patrick Toulze
Please Log in or Create an account to join the conversation.
- Patrick Toulze
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 312
- Thank you received: 19
3 years 6 months ago #144707
by Patrick Toulze
Replied by Patrick Toulze on topic Need to output the location name on —> view-register layout-default with no link
Thank You! Work perfectly!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 6 months ago #144730
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Need to output the location name on —> view-register layout-default with no link
Please remember to move the modified code to PATH_TO_TEMPLATE/html/com_eventbooking/event folder so that the change won't be lost when you update to future releases of the extension.
The following user(s) said Thank You: Patrick Toulze
Please Log in or Create an account to join the conversation.
- Patrick Toulze
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 312
- Thank you received: 19
3 years 6 months ago #144754
by Patrick Toulze
Replied by Patrick Toulze on topic Need to output the location name on —> view-register layout-default with no link
Yes, Thank You!
Override in —> Template > html > com_eventbooking > register > default.php
Override in —> Template > html > com_eventbooking > register > default.php
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 6 months ago #144762
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Need to output the location name on —> view-register layout-default with no link
OK, great.
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.