Display field in Category

More
10 years 4 months ago #52346 by iamrobert
Hi,

I am trying to display category field - but can't - Flexicontent 3.0 dev.
Code:
echo $items[$i]->fields['title']->display;

and this:
Code:
$li_item_classes .= ' '.$items[$i]->fields['title']->display; echo $li_item_classes;

and this:
Code:
print_r($this->items[$i]->fields['title']);

The title displays in the category fine - but I can't get the field to render and have tried different ideas.

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

More
10 years 4 months ago #52350 by ggppdk
Replied by ggppdk on topic Display field in Category
Hello

this always exists:

$items[$i]->title



this:

$items[$i]->fields->display;

is only created in a 'title' is a template position


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.316 seconds
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
Save