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
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 ?
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:
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!
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>