[SOLVED] How to get the value of a radio image field inside php file

More
10 years 1 week ago - 10 years 1 week ago #55314 by juansolos
Hello,
i use this to display field in my template
Code:
$item->fields['fieldid']->display;

Fine, but in the case of a radio image field i get the image. In some case i want to get the value or label
My field element : value1::label1::image1.png%% value2::label2::image2.png
I want to get value or label.

Any help?

Regards
Last edit: 10 years 1 week ago by ggppdk.

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

More
10 years 1 week ago - 10 years 1 week ago #55315 by micker
go to your configuration field => you can select output type

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]
Last edit: 10 years 1 week ago by ggppdk.

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

More
10 years 1 week ago - 10 years 1 week ago #55316 by juansolos
Ideed

In my item view i display the image.

I just want to get the value or label in the category view. (not image)
I set the field in the renderonly position.
Last edit: 10 years 1 week ago by ggppdk.

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

More
10 years 1 week ago - 10 years 1 week ago #55325 by ggppdk
Hello

you can use:
Code:
$my_field_id = 45; print_r( $item->fieldvalues[ $field_id ] );


-- 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: 10 years 1 week ago by ggppdk.

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

More
10 years 1 week ago - 10 years 1 week ago #55334 by juansolos
Hello,
thanks.
Nearly good.
Exactly i get my value with
Code:
print_r($item->fieldvalues[myfieldID][0])

Perfect

Regards
Last edit: 10 years 1 week ago by ggppdk.

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

More
10 years 1 week ago - 10 years 1 week ago #55352 by ggppdk
Hello

also since you do this in your template,
read this FAQ article (it will be quite useful):
www.flexicontent.org/documentation/faq/6...to-work-in-v156.html


-- 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: 10 years 1 week ago by ggppdk.

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

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