Show Flexi Field in Item Backend Listview

More
13 years 6 months ago #16028 by horsey
Hello, thanks for this great piece of software!

I would like to add one Flexi field to the item list view in the backend.

The field contains an ID code for a product. Its quite annoying to have to look up an item by its name, or nurse some other list to correspond the item IDs to the actual produkt ID.

I think I'm on the right track here:

/administrator/components/com_flexicontent/views/items/tmpl/default.php from line 180.

Could you tell me what to hard code quick and dirty to put in an additional column for a user created field?

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

More
13 years 6 months ago #16053 by yopyop001
Hi and welcome,

You can do it in this file (default.php):

Add
Code:
require_once (JPATH_COMPONENT_SITE.DS.'classes'.DS.'flexicontent.fields.php'); $this->rows = FlexicontentFields::getFields($this->rows);

Then, you can call the fields in the table using :
Code:
<th> <?php echo $row->fields['field-name']->label; ?> </th>
in the table header

and
Code:
<td> <?php echo $row->fields['field-name']->display; ?> </td>
in the table content

I hope it will help you.

Regards

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.708 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline