Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Adjusting Table view

  • Karsten Bakker
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 week ago #104959 by Karsten Bakker
Adjusting Table view was created by Karsten Bakker
Hi,

I would like to add some columns to the table view, such as the by me already added "type_bus" in the fields.xml .
I already tried
<?php echo $item->paramData; ?>
adding to the events_table.php. (Ofcourse I turned the option to "on" in the admin menu.
Could someone provide me with the code which I need to add in order to get the table view in Events booking with my custom fields?

My second question is in the table layout how can I change the event image so that it don't directs to the image source but to the event?

Hope to hear from you soon, I am not able to provide any credentials because I am still working locally.


Thanks in advance.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 1 week ago #104972 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adjusting Table view
Hi

1. To show value of that custom field, you can simply use this code <?php echo $item->type_bus; ?>

2. To make the thumb links to event details page, replace echo $largeImageUri in the code with

echo JRoute::_(EventbookingHelperRoute::getEventRoute($item->id, $categoryId, $Itemid)

And it should be fine

Regards,

Tuan

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

  • Karsten Bakker
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 week ago #105001 by Karsten Bakker
Replied by Karsten Bakker on topic Adjusting Table view
Hi Tuan,

The second tip worked fine thanks for that!

Unfortunately the first one didn't , this is my XML code:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<fields name="params">
<fieldset name="basic">
<field name="type_bus" type="text" label="Type bus" size="50" description=""></field>
<field name="opstap_locatie" type="text" label="Opstap locaties" size="50" description=""></field>
</fieldset>
</fields>
</config>

Could you also tell me where in the events_table I need to put this because by logic you want the title in top of the table and the content beneath it. <?php echo $item->type_bus; ?>

Thanks in advance.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 1 week ago #105007 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adjusting Table view
Hi Karsten

The code I sent you should work. Also, please go to Events Booking -> Configuration, look at Themes tab, set the config option to Yes Show event custom fields in category view

If it still doesn't work, I will need you to upload the site to an online server so that I can check it directly on your site to get it works

Tuan

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

  • Karsten Bakker
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 week ago #105016 by Karsten Bakker
Replied by Karsten Bakker on topic Adjusting Table view
Hi,
Thanks for the fast response.

My site is far from finished but I added the events_table.php and the fields.xml in the attachments so you can take a look.

Hope to hear from you.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 1 week ago #105031 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adjusting Table view
Hi

I see something wrong with your code and corrected it. Please get the updated events_table.php file here, replace the original file and check the result

Regards,

Tuan
The following user(s) said Thank You: Karsten Bakker

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

  • Karsten Bakker
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 week ago #105059 by Karsten Bakker
Replied by Karsten Bakker on topic Adjusting Table view
Hi Tuan,

Thanks for the update it works awesome right now!

Karsten

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 1 week ago #105060 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adjusting Table view
Happy to hear that :)

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

Moderators: Tuan Pham Ngoc