- Posts: 27
- Thank you received: 0
need to change Speaker label in extra information
- sharonob
- Topic Author
- Offline
- Junior Member
-
Less
More
12 years 9 months ago #17185
by sharonob
need to change Speaker label in extra information was created by sharonob
Hi Tuan,
I need to change the label Speaker to something else. I don't see it in the main language file for eb. Where is the code that names that label?
Thanks!
I need to change the label Speaker to something else. I don't see it in the main language file for eb. Where is the code that names that label?
Thanks!
Please Log in or Create an account to join the conversation.
- sharonob
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
12 years 9 months ago #17187
by sharonob
Replied by sharonob on topic Re: need to change Speaker label in extra information
Found the label in fields.xml in the com_eventbooking folder.
Now I have to rearrange the order of those lines and also need to set up an IF statement , that IF the field has a value show it, ELSE don't show it.
Where would I enter that php?
Thanks!
Now I have to rearrange the order of those lines and also need to set up an IF statement , that IF the field has a value show it, ELSE don't show it.
Where would I enter that php?
Thanks!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 9 months ago #17196
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: need to change Speaker label in extra information
Hi
If you are using latest version (1.4.5), please follow the steps below to modify code :
1. Open the file components/com_eventbooking/views/category/tmpl/default.php
2. Find the code below :
3. Change it to :
After that, it should work as expected .
Tuan
If you are using latest version (1.4.5), please follow the steps below to modify code :
1. Open the file components/com_eventbooking/views/category/tmpl/default.php
2. Find the code below :
Code:
if (isset($item->paramData)) {
foreach ($item->paramData as $paramItem) {
?>
<div class="eb_prop">
<dt>
<?php echo $paramItem['title']; ?>:
</dt>
<dd>
<?php
echo $paramItem['value'];
?>
</dd>
</div>
<?php
}
}
3. Change it to :
Code:
if (isset($item->paramData)) {
foreach ($item->paramData as $paramItem) {
if ($paramItem['value']) {
?>
<div class="eb_prop">
<dt>
<?php echo $paramItem['title']; ?>:
</dt>
<dd>
<?php
echo $paramItem['value'];
?>
</dd>
</div>
<?php
}
}
}
After that, it should work as expected .
Tuan
Please Log in or Create an account to join the conversation.
- sharonob
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 0
12 years 9 months ago #17198
by sharonob
Replied by sharonob on topic Re: need to change Speaker label in extra information
Thanks so much- makes for a nicer presentation!
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 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.