Loading...
 
Skip to main content

Features / Usability


MakeToc plugin descrption

I was using version 1.9 and I migrated to version 9.2

I am using the MakeTOC fancy plugin to display my structure of pages.

In the old version there was no way to put a description next to the page. But I found a workaround. There is a desription field on the TikiPages table and I would place my description there. I was even able to use HTML tags (bold color etc)and it would render properly on tha table of contents page.

(It also showed that stupid "paw", but that is another topic)

Now in versio 9.2 it also shows the description but the HTML tags are not rendered. It also renders the description in italic.

Is there some setting/way to have the plugin render the HTML tags as before?

A plus would be an option to remove/modify the paw

Thanks

Anyway it appears that the template structures_toc-leaf.tpl
was changed to remove escape characters such as double-quotes and html tags < > etc

It uses the smarty language keyword |escape to accomplish this

The solution is to edit the last line ( if you are using 'fancy')

and change $structure_tree.description|escape to just $structure_tree.description

One major point is that you must not edit and save within tikiwiki (even though it allows you to do this) otherwise it will comment out your javacsript in the template


c.f http://twbasics.tikiforsmarties.com/Editing+TemplatesQuestion