Output single field not working anymore?

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
12 years 9 months ago #17230 by Anonymous
Output single field not working anymore? was created by Anonymous
Hi everybody,

Has code like this been depreciated in flexicontent?

<?php echo $this->fields->display; ?>

I used this in the previous version before 1.5.4 to output a single field without having to use if statements and template positions. It doesn't seem to be working anymore though after I did the upgrade. I had the jlikeflexi plugin and I outputted it like this:

<?php echo $this->fields->display; ?>

and it didn't display and neither did the last modified date.

Any ideas?

Thanks

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

More
12 years 9 months ago #17232 by ggppdk
If you are using the latest build, yes it will not work. I will tell you what to do but first tell me what version you are using. And in what view you are 'item' or 'category' or other?

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.

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
12 years 9 months ago #17235 by Anonymous
Replied by Anonymous on topic Output single field not working anymore?
I'm using version 1.5.4 and I'm in the default template on the item.php view

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

More
12 years 9 months ago #17237 by ggppdk
==> 1. Edit your item.xml and your category.xml and create one more position named 'renderonly' or whatever name you like.
[attachment=0:k5q4y7ec]<!-- ia0 -->demo1.jpg<!-- ia0 -->[/attachment:k5q4y7ec]
==> 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'

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...
Attachments:

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

More
12 years 9 months ago #17238 by ggppdk
Also to create a new template and or add new position see this post:
www.flexicontent.org/phpbb/viewtopic.php...3243&start=10#p16872
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.

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
12 years 9 months ago #17239 by Anonymous
Replied by Anonymous on topic Output single field not working anymore?
thank you for your help on this. i think this bug is fixed in flexicontent 1.5.5 correct? i just installed that version and it seemed to fix the problem as well.

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

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