[SOLVED] fields inside new template position

1 year 5 months ago - 1 year 5 months 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:
// 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

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

1 year 5 months ago - 1 year 5 months 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:
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]
The following user(s) said Thank You: bymamo

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

1 year 5 months ago #64918 by bymamo
I have it :-)

Thank you very much

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

1 year 5 months 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.

1 year 5 months ago #64921 by bymamo
Yes, solved.

Thank you very much!!!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.