[Solved] Calling specific fields in template

More
10 years 3 months ago - 10 years 3 months ago #48415 by webfooted
Hi there

I'm attempting to convert a Joomla 1.5 site to 3.3 using the latest version of Flexicontent.

In my original custom flexicontent template I used the following code in the item.php file to display a specific field:
<?php echo $this->fields->display; ?>
However, when I use this in the new template it won't display.

I've tried the following:
1. Changing 'location' to 'title' and the title displays fine.
2. Checking that the field 'location' has been successful imported, that the name is still 'location' and that the sample item has its location entered.

I would be grateful if you could help me pinpoint what I'm doing wrong.

Many thanks, Emily
Last edit: 10 years 3 months ago by webfooted.

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

More
10 years 3 months ago #48422 by micker
in flexi 2 if you want to call field in php without position you need to put your field in render only position of your template (for better performance flexicontent don't load all field only field in position)

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
10 years 3 months ago #48429 by ggppdk
Hello


you need to add the field to the "renderonly" position

but for adding the above position, please read this FAQ article:

How to manually render/display fields inside templates ... and Upgrading custom Templates to work in v1.5.6+


-- 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
10 years 3 months ago #48487 by webfooted
Hi guys

Thanks for your replies. I'll take another look and see if I can follow the instructions.

Many thanks, Emily

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

More
10 years 3 months ago #48488 by webfooted
Thank you so much! I added the renderonly position and added the location field to it ... and it worked!

Thanks for your help with this, it's very much appreciated.

Cheers, Emily

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

More
10 years 3 months ago #48502 by micker
cool think to edit your title post to add [solved]
regards

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.

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