Custom fields in category view

  • cyphermedia
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 2 months ago #27143 by cyphermedia
Custom fields in category view was created by cyphermedia
My custom fields are showing up in the detail view for each event, however when I try to use the same code in the category view (views/category/tmpl/default.php) it doesn't display the custom fields.

I am running version 1.4.4

The code I am trying to use in the category view is:

if ($this->config->event_custom_field) {
foreach ($this->params as $param) {
if (strlen($param[4])) {
?>
<div class="eb_prop">
<dt>
<strong><?php echo $param[3]; ?></strong>
</dt>
<dd>
<?php echo $param[4] ; ?>
</dd>
</div>

Do I need to use something different in the category view?

Thanks for your help.

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

More
12 years 2 months ago #27199 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom fields in category view
Hi

You cannot use that code in the category page because in category page, that variable ($this->params) is not available. What version of Joomla you are using ? If you are using Joomla 2.5, maybe you can consider upgrading your site to version 1.5.3 of Events Booking. In that version, custom fields are displayed in the category page by default.

Tuan

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

  • cyphermedia
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 2 months ago #27208 by cyphermedia
Replied by cyphermedia on topic Re: Custom fields in category view
Thanks for replying.

I am using Joomla 2.5 but unfortunately it's not possible for me to upgrade the site at this time. Unless there is another solution, I will just have to wait.

Thanks.

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

More
12 years 2 months ago #27311 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom fields in category view
Hi

If it is not possible to upgrade, then you will need to customize the code yourself. Maybe getting the latest version of Events Booking , look at the code to see how it is written and then copy it to the version you are using on your site.

Tuan

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

More
12 years 1 month ago #28031 by karagamber
Replied by karagamber on topic Re: Custom fields in category view
we have the latest version of Events Booking and our Custom Fields are not showing in our Cat Table Layout. We have it selected to show in the admin.
Attachments:

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

More
12 years 1 month ago #28166 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom fields in category view
The custom fields you mentioned are the registration custom fields. These custom fields allows you to collect more information about registrants and will be showed on registration form.

If you want to show more information about the event, you will need to use events custom fields. See joomdonation.com/using-extensions/using-..._event_custom_fields for detailed instructions.

Tuan
The following user(s) said Thank You: FrankM

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

Moderators: Tuan Pham Ngoc