Quick Index

Index not corresponding to the real structure of Headers

1 year 4 months ago #73849

Marc's Avatar Marc

Hi Peter,

If I reproduce the little easy example "cats & dogs" on my site, {index} works as expected :
www.regularlabs.com/extensions/quickindex

But with a richer structure of Headers then the Index is not coherent.
See the screen capture and the correspondig html hereafter :
screenpresso.com/=yWhSf

Txs (and enjoy the holiday, this can really wait a few days and even weeks)

<p>{index}</p>
<h1>First Title H1</h1>
<h2>First Title H2</h2>
<p>lorem</p>
<h3>First Title H3</h3>
<p>lorem</p>
<h4>First Title H4</h4>
<p>lorem</p>
<h4>Second Title H4</h4>
<p>lorem</p>
<h3>Second Title H3</h3>
<p>lorem</p>
<p>lorem</p>
<p>lorem</p>
<p>lorem</p>
<p>lorem</p>
<p>lorem</p>
<h2>Second Title H2</h2>
<p>lorem</p>
<h3>Next Title H3</h3>
<p>lorem</p>
<h4>Next Title H4</h4>
<p>lorem</p>
<h4>Next Title H4 bis</h4>
<p>lorem</p>
<h3>Last Title H3</h3>
<p>lorem</p>
<p>lorem</p>
<p>lorem</p>
<p>lorem</p>
<p>lorem</p>
<p>lorem</p>

1 year 4 months ago #73851

Peter van Westen's Avatar Peter van Westen Admin

Please try the latest development version from:
www.regularlabs.com/development-releases

1 year 4 months ago #73853

Marc's Avatar Marc

Hi Peter,

I do confirm :
the Dev Free version solves both issues :
- the fact that only h1 and h2 was taken in the index
- the fact that the structure as shown above was not coherent

Here is the screenshot of the new (correct) index :
screenpresso.com/=MwLUd

Txs a lot again for the good work and the quick reaction.
Just take some rest now, it is Sunday & holiday 😁

1 year 4 months ago #73854

Marc's Avatar Marc

(oh, by the way, maybe another little detail to fix : whatever I choose for "Ordered List" (yes/no), it seems that nothing changes in the front-end)

1 year 4 months ago #73855

Marc's Avatar Marc

Oh, little question : I am making a tutorial to explain the users how to use RegularLabs extensions 🙂
But how to avoid the code to be executed ??
I had a look on your site, where you write for example

<code>{index}</code>
But if I do that the code is executed.
So is there is simple way to display {index} {snippet} {tabs} {snippets} {tooltips} etc without executing them ?
(maybe some hidden feature ? 😁

1 year 4 months ago #73858

Peter van Westen's Avatar Peter van Westen Admin

Break the code with spans:

<span>{</span>index}
Or change the syntax for these extensions on your site, so that you can use the default tags in documentation.
For instance, you can change the syntax word from 'index' to 'toc', meaning {index} will remain as it is and you need to use {toc} to trigger Quick Index.

1 year 4 months ago #73859

Peter van Westen's Avatar Peter van Westen Admin

Concerning the ordered listing:
Please try the latest development version from:
www.regularlabs.com/development-releases

1 year 4 months ago #73860

Marc's Avatar Marc

Yep, works ! 🙂
Txs
Marc

1 year 4 months ago #73866

Peter van Westen's Avatar Peter van Westen Admin

Great 🙂

1 year 2 months ago #75097

Katrin Meinicke's Avatar Katrin Meinicke

Hi Peter,

sorry I've forgot to open a new topic.
It is now under the topic "Doesn't work on one page" .