Creation of an Index

Hi all,

I’m trying to create an index and highlight each letter.
Something like this:

Would anyone have an approach for this?
Thanks a lot!!
MomoM

where do these words originate from ?
are these words titles of keywords ?
or maybe titles of articles ?
anything else or maybe nothing exists as for now ?
should they link to something ? to what ?

1 « J'aime »

Hi JLuc,
Thanks for your fast response!

They are the titles of an article. And they should link to the main article.

What I have so far is just a list in the alphabetical order:

Screenshot from 2023-11-27 10-41-01

And with that the list of elements:
Baboon
Batfish
Bamboo rat

But now, I would like to add the index on top of the alphabetical list.

Thanks!

Hi RealET,

Thanks a lot! I’ll try that!

Hi all,
I found this solution to be working:

Thank you all for your help!!
MomoM

If you’re using a recent MySQL database, know how to use pipelines, and feel a bit adventurous, you can also try this code: SPIP : critère {initiale} · GitHub

The difference is that it will give you the real index based on articles titles. Though there might be issues if you’re using numerotation in titles.

<BOUCLE_alpha(ARTICLES) {initiale, titre} {fusion initiale}><a href="##INITIALE">#INITIALE</BOUCLE_alpha>
<BOUCLE_articles(ARTICLES) {initiale, titre} {par initiale} {tous}>
[<p id="(#INITIALE|unique)">#INITIALE</p>]
<hr>
<a href="#URL_ARTICLE">#TITRE</a><br>
</BOUCLE_articles>
1 « J'aime »