[SOLVED] fields inside new template position

More
8 years 2 weeks ago - 8 years 1 week ago #64912 by bymamo
Hi!

I think that this question is easy for all but I don't know how to do it.

I created new group position inside item.xml: <group>newposition</group>
New position display fine and I can put fields inside.

Like say... www.flexicontent.org/documentation/faq/6...to-work-in-v156.html
Inside item_html5.php I put:
Code:
// item view or category view $myfield_html = FlexicontentFields::getFieldDisplay($item, 'name_of_field'); // use either: echo $myfield_html; echo $item->fields['name_of_field']->display;

I seem that something is missing or wrong because don't show anything.

Can you help me, please.
Thanks
Last edit: 8 years 1 week ago by ggppdk.

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

More
8 years 1 week ago - 8 years 1 week ago #64913 by micker
Besides adding the new template position for fields into the XML file,

- you also need to add the new position at the file: item.php

1. click to edit the file: item.php
2. click to load its default PHP / HTML code
3. look throught the loaded PHP / HTML code and find the place that you want to add the new position
4. click on the button that add the postion's PHP code

it will look like:
Code:
foreach (... as position) { }

Make sure you set the correct position name to the above code

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: 8 years 1 week ago by ggppdk.
The following user(s) said Thank You: bymamo

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

More
8 years 1 week ago #64918 by bymamo
I have it :-)

Thank you very much

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

More
8 years 1 week ago #64920 by micker
solved ?

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]

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

More
8 years 1 week ago #64921 by bymamo
Yes, solved.

Thank you very much!!!

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

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