need to change Speaker label in extra information

  • sharonob
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 9 months ago #17185 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!

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

  • sharonob
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 9 months ago #17187 by sharonob
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!

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

More
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 :
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
  • Junior Member
More
12 years 9 months ago #17198 by sharonob
Thanks so much- makes for a nicer presentation!

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

Moderators: Tuan Pham Ngoc