[SOLVED] fieldgroup: access value-property in fc-template?

More
8 years 3 weeks ago - 8 years 3 weeks ago #65191 by kath
hi there,

how can I access the value-property of my fieldgroup-field?
  • the fieldgroup-field has multiple values
  • value-property of the fieldgroup-field is currently an empty array
  • custom-formatting the output-html is not enough for my purpose.

thank you! :)
Last edit: 8 years 3 weeks ago by ggppdk.

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

More
8 years 3 weeks ago - 8 years 3 weeks ago #65193 by ggppdk
Hello

you can access the values of the fields that participate into the fieldgroup
- the index of the value every fields show which group is in

e.g. you have these fields (field IDs) in the fieldgroup: 31, 45, 54, 55



This is the 1th value of the field group:
$item->fieldvalues[31][0]
$item->fieldvalues[45][0]
$item->fieldvalues[54][0]
$item->fieldvalues[55][0]

This is the 5th value of the field group:
$item->fieldvalues[31][4]
$item->fieldvalues[45][4]
$item->fieldvalues[54][4]
$item->fieldvalues[55][4]


-- 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...
Last edit: 8 years 3 weeks ago by ggppdk.
The following user(s) said Thank You: kath

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

More
8 years 3 weeks ago #65200 by kath
Great, thank you, exactly what I needed. :)

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

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