Dotclear

Vous n'êtes pas identifié(e).

Annonce

13 février 2024 Sortie de Dotclear 2.29

#1 2014-09-12 06:23:15

jarekb
Membre
Inscription : 2014-09-06

Choosing article from alphabetical list

Hello,

New challenge with my Dotclear experience. I have review category that i would like to present in form of alphabetical list like in this example:

0-1 A B C D.... X Y Z

http://dev.dotclear.org/code/2.2/classes.html

I would like this category to be sorted by date as it is now, but also to give readers this option at the top, if they want to chose alphabetically.

Anyone did it before and could help me? Glad for any answer or clue.

Hors ligne

#2 2014-09-12 08:30:21

nikrou
Membre
Inscription : 2007-10-02
Site Web

Re : Choosing article from alphabetical list

How do you sort categories in alphabetical order ?


Je préfère être atteint de parkinson plutôt qu'alzheimer : je prefère renverser un peu de ma bière plutôt qu'oublier de la boire !

Présentez vos photos simplement avec Phyxo !

Hors ligne

#3 2014-09-12 09:00:21

Philippe
Stagiaire
Lieu : Toulon
Inscription : 2004-06-13
Site Web

Re : Choosing article from alphabetical list

I believe it is the posts from a particular category that jarekb wants to sort. It is possible with attribute sortby in <tp:Entries> loop ;)

Hors ligne

#4 2014-09-16 14:38:00

jarekb
Membre
Inscription : 2014-09-06

Re : Choosing article from alphabetical list

I guess, I must follow Philippe's instructions, i.e. to edit categry.tpl, find <tp:Entries> and add something there with "if" instruction. Do the alphabetical index appear automatically then?

Hors ligne

#5 2014-09-16 14:53:45

Philippe
Stagiaire
Lieu : Toulon
Inscription : 2004-06-13
Site Web

Re : Choosing article from alphabetical list

No, adding a sortby attribute will only sort entries as required, but the alphabetical index will not appear by itself.

However, the team used such a plugin for Dotaddict, but it was long ago. I will ask if somebody remembers what needed to be done.

Hors ligne

#6 2014-10-23 21:22:15

jarekb
Membre
Inscription : 2014-09-06

Re : Choosing article from alphabetical list

Hello Philippe,

Any feedback received from Dotaddict team on this plugin?

If not, i would need something to let the user choose, how he want to sort entries (by date, by alphabet, by author etc.).

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map