SOLVED disable fcvote, keep field display

More
10 years 11 months ago - 10 years 11 months ago #43099 by kath
hi there,

The Problem: I currently lose my custom field output.

The Details:
1) I don't need fcvote etc. So I disable the output of fcvote (BE > FC > Config > 'Performance Options' > 'Always create field HTML':'Never unless in template position').
This works: fcvote disappears.
2) In my FC-tmpl I do:
$img = FlexicontentFields::getFieldDisplay($item, 'my_img');
This now seems to output an empty string.

The Question: I guess my 'getFieldDisplay()' is the wrong choice?

thanks for advice,
kath :)
Last edit: 10 years 11 months ago by kath.

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

More
10 years 11 months ago #43101 by kath
Sorry, confusion on my side:

output of the custom fields does work, sory again.

However this does not work:

$txt = JFilterOutput::ampReplace($item->fields->display);

outputs an empty string.

$item is correct.
fields is filled.

thanks,
kath

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

More
10 years 11 months ago #43103 by kath
solved it:

to correctly get the item text I had to use:
$txt = JFilterOutput::ampReplace($item->introtext);

instead of
$txt = JFilterOutput::ampReplace($item->fields->display);

guess i used deprecated code here.

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

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