Display custom fields in table view?

  • Roy Chappell
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 3 months ago #140443 by Roy Chappell
Display custom fields in table view? was created by Roy Chappell
Hi

In EB > Configuration > Event Custom Fields I have added
Code:
<field name="field_depth" type="text" label="Depth" size="10" description=""></field>

I want to display this field (label & value) in the overridden file 
public_html/templates/yootheme/html/com_eventbooking/common/events_table.php

How do I show the field's label & value in the above file

thanks
Roy

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

More
4 years 3 months ago #140465 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Display custom fields in table view?
Hello Roy

1. For Field Label, it should be hardcoded

2. For value entered for the field, just use php echo command
Code:
echo $item->field_depth;

Tuan
The following user(s) said Thank You: Roy Chappell

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

Moderators: Tuan Pham Ngoc