[SOLVED] how to get a custom field's value with FC 1.5.6.+

More
12 years 8 months ago - 12 years 8 months ago #29666 by kath
hi!

probably a stupid question, but i've been working in other worlds for a while, FC got updated meanwhile, and

i need to update a few of m old FC-templates, where i used to do this:

$val = $item->fields->value;

this code now throws:

Notice: Undefined property: stdClass::$value in

- what would be the updated synthax?
- where could i have found the answer without bothering you here? :)

thanks a lot!
kath
Last edit: 12 years 8 months ago by kath.

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

More
12 years 8 months ago #29667 by kath
forgot to mention:
in this case we're talking about a multiselect field.
but of course it's important to know for simple fields like "text", too.
thanks!
kath

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

More
12 years 8 months ago #29671 by ggppdk
You will need to add a "renderonly" position in your template or create field by calling a function

Upgrading custom Templates to work in v1.5.6+


-- 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.

More
12 years 8 months ago #29684 by kath

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.521 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