Single Field Output

More
12 years 8 months ago #28920 by pepiw1
Single Field Output was created by pepiw1
Hi,

At the moment i'm creating my own custom templates.

What is the better solution for single field output?

1:
Code:
<?php echo $this->fields['field23']->display; ?>
- working
or
2:
Code:
<?php echo $this->item->positions['subtitle_tab5']->field21->display; ?>
- also working

Im using the newest build of FC (r1487)

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

More
12 years 8 months ago #28926 by ggppdk
Replied by ggppdk on topic Single Field Output
You can use the first method make sure the field is in the "renderonly" position so that it gets created (you see we do not create the display of fields that are not in a template position)


-- 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 #28928 by pepiw1
Replied by pepiw1 on topic Single Field Output
Alright,

Thank you george!

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

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