lpaulsen93 / dokuwiki-plugin-odt

Exports a page to the Open Document format used by OpenOffice.org and other word processors
http://www.dokuwiki.org/plugin:odt
13 stars 26 forks source link

Table of contents not generated #250

Closed intervisionlord closed 5 years ago

intervisionlord commented 5 years ago

In settings i have filled options - toc_maxlevel, toc_leader_sign, toc_indents but in formed document there is no any table of contents

lpaulsen93 commented 5 years ago

See https://www.dokuwiki.org/plugin:odt#toc. You need to insert the syntax tag {{odt>toc}} in you wiki page to generate a table of contents. It will not change the HTML output, only the exported document is affected.

lpaulsen93 commented 5 years ago

A little remark: the plugin does not genearte/know the exact page numbers. You will need to update the toc once after opening the exported document.

intervisionlord commented 5 years ago

Thanks for reply. This helps partically.

It will not change the HTML output, only the exported document is affected.

But it does: cbbbb84a9122fd8294305022d741e02e.png

It adds note saying "TOC would be here" (actually IDK is it because of template or not)

Workaround: Using the "hidden" plugin and placing code between <hidden></hidden> container solved this...

lpaulsen93 commented 5 years ago

Workaround: Using the "hidden" plugin and placing code between container solved this...

You can use the plugin's config option index_in_browser to achieve the same result. Set it to hide.

intervisionlord commented 5 years ago

Doesn't work. Placeholder still shown. =(

lpaulsen93 commented 5 years ago

Just re-tested. Works for me. Maybe you have to clear the cache of that page, see https://www.dokuwiki.org/devel:caching?s[]=purge#purging_the_cache.

intervisionlord commented 5 years ago

Clearing cache does not help. Anyway i use <hidden> tag now and it's okay... Thank you.