Output single field not working anymore?

More
12 years 9 months ago #17241 by ggppdk
NO this is not a bug, for performance reasons in future versions of FlexiContent, fields not in a template position WILL NOT have their display created. Imagine in category having 100 items and only displaying their titles and 1 or 2 fields.

Why would ever want to create the display of all fields of the items and possibly triggering plugins on them. You want your category view to require 10-20 seconds to load?

IN YOUR current version only you can use:
$this->item->fields->display
BUT the code i gave above will work in future versions

Regards


-- 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 9 months ago #17243 by ggppdk
Also in future versions (1.5.6) you can use this:

echo FlexicontentFields::getFieldDisplay($this->item, 'modified');

To create and retrieve the display of the field, without any other changes to the template

Regards


-- 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 9 months ago #17248 by micker
great !!

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.

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
12 years 9 months ago #17271 by Anonymous
Replied by Anonymous on topic Output single field not working anymore?
When you said clean the cache, did you mean the joomla cache or the browser cache? i've been having problems getting the positions i put in the .xml file to show up in the backend. I'll create the position, called facebook_like like this:

<group>facebook_like</group>

and then I go into the templates in the backend and refresh and the position doesn't show up to allow me to put a field in it. Any ideas why?

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

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
12 years 9 months ago #17273 by Anonymous
Replied by Anonymous on topic Output single field not working anymore?
I tried what you stated in the previous post:

==> 2. Then clean cache
==> 3. Go to the template manager and drag & drop: your field e.g 'modified' to the new position.
==> 4. Inside your template file item.php use:
$this->item->positions->modified->label
$this->item->positions->modified->display
First is the Field's Label and Second the output of the field. The 'modified' is the name of the field could anything you named your field e.g. 'mynameABCD'

I created a new position, put the field "facebook_like" into that position, and then used that $this->item->... code to try and make it display on the frontend. However it doesn't show up at all.

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

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
12 years 9 months ago #17274 by Anonymous
Replied by Anonymous on topic Output single field not working anymore?
I should also mention I'm upgraded to version 1.5.5 now.

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

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