Flexibreak toc in position or field

More
7 years 1 month ago - 7 years 1 month ago #66499 by tobajarrat
Hi guys!

I wish to use the TOC generated by flexibreak in an flexicontent template position or even in a field. flexibreak placement is set to $item->toc
In the "default" template is a code snippet
Code:
if (isset($item->toc)) { $item->fields['text']->display = $item->toc . $item->fields['text']->display; }
which has no effect, because if i comment this out (item.php and item_html5.php), toc is still prepending to description.
I also have no clue how to put the toc in a field or position.

Maybe someone can help me.
Joomla and flexicontent is up to date

Thank you in advance!

Im using latest joomla and latest Flexicontent
Last edit: 7 years 1 month ago by ggppdk.

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

More
7 years 1 month ago #66548 by ggppdk
Hello

so you have enabled placement via $item->toc

if you do inside (item.php and item_html5.php),
Code:
die($item->toc);
1. does execution stop ?
2. does execution stop and you also see the TOC ?


-- 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
7 years 1 month ago #66563 by tobajarrat
Hi ggppdk,

placement via $item->toc is enabled.
Code:
if (isset($item->toc)) { $item->fields['text']->display = $item->toc . $item->fields['text']->display; }
is replaced with
Code:
die($item->toc);
into item.php and item_html5.php causing plain white page.

Im using latest joomla and latest Flexicontent

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

More
7 years 1 month ago #66637 by ggppdk
Hello

yes i see that it is empty,
it is a bug, the parameter has no effect|

so the placement of TOC cannot be customized in current version


-- 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
7 years 1 month ago #66660 by tobajarrat
@ggppdk
Because I know you are one of the developers of Flexicontent and very busy even in this support forum, should I post this issue anywhere as a bug for further treatment, or did you already?

Im using latest joomla and latest Flexicontent

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

More
7 years 1 month ago #66662 by ggppdk
Hello

this is a low priority bug,
but you can create a new issue here:
github.com/FLEXIcontent/flexicontent-cck/issues

so that this is not forgotten


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

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