Dotclear

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

Annonce

13 février 2024 Sortie de Dotclear 2.29

#1 2017-09-22 10:36:00

bogo_mipps
Membre
Inscription : 2017-09-22

Theme Fjalla: How to change Archive index order [SOLVED]

Hi

Really love this theme in all ways - except Archive indexing!  Would like latest posts to be at the top rather than the bottom - otherwise it appears that nothing new posted unless one scrolls to the bottom.  Newest at the top would make much more sense ...

Would appreciate a quick fix on this great theme ...   Ben, perhaps?

TIA

Bogo

Dernière modification par bogo_mipps (2017-09-23 04:49:25)

Hors ligne

#2 2017-09-22 18:28:57

ben_griffith
Membre
Lieu : Wiltshire
Inscription : 2009-09-28

Re : Theme Fjalla: How to change Archive index order [SOLVED]

Hi bogo_mipps

In folder tmp, open archive_month.html and change in line 476

<div class="content-inner">
<tpl:Entries order="asc">

to

<div class="content-inner">
 <tpl:Entries order="dsc">

asc is for ascending and dsc is for descending order


I Dotclear.

Hors ligne

#3 2017-09-23 02:18:27

bogo_mipps
Membre
Inscription : 2017-09-22

Re : Theme Fjalla: How to change Archive index order [SOLVED]

Thanks for prompt answer, Ben. That makes sense, but doesn't seem to have made any difference.  Have stopped, restarted, cleared cache - and gone on to my web host and done the same.  Again no difference. Seems odd, as 'indexing' is taking place - but not the way I want it!  Any further ideas?

TIA
Bogo

Hors ligne

#4 2017-09-23 02:26:37

bogo_mipps
Membre
Inscription : 2017-09-22

Re : Theme Fjalla: How to change Archive index order [SOLVED]

Hi again, Ben.  Found it in archives.html. Sorry should have thought to look there as well before I posted - but also am wondering whether I've upset anything by changing to "dsc" in both files?

<snip>
({{tpl:ArchiveEntriesCount}})</li>
                       <tpl:Entries order="dsc">
</snip>

Just in case anyone else is interested I'll change this header to 'solved' later - depending on your answer!

Thanks, Bogo

Hors ligne

#5 2017-09-23 04:37:19

ben_griffith
Membre
Lieu : Wiltshire
Inscription : 2009-09-28

Re : Theme Fjalla: How to change Archive index order [SOLVED]

Good work, bogo_mipps.

Sorry, I thought you meant the monthly archive.

Just the correct code for archive.html in case somebody needs it:

<li><a href="{{tpl:ArchiveURL}}"
title="{{tpl:ArchiveDate encode_html="1"}}">{{tpl:ArchiveDate encode_html="1" format="%B"}}</a>
({{tpl:ArchiveEntriesCount}})</li>
<tpl:Entries order="dsc">

I Dotclear.

Hors ligne

#6 2017-09-23 11:18:47

Mirovinben
M comme Mathusalem
Lieu : Dole (Jura)
Inscription : 2007-02-06
Site Web

Re : Theme Fjalla: How to change Archive index order [SOLVED]

<tpl:Entries order="dsc">

Heu... Bad.

Better is

<tpl:Entries order="desc">

Cf Doc

Sorry for the brevity of my message but I speak only French.

Hors ligne

#7 2017-09-23 14:34:58

ben_griffith
Membre
Lieu : Wiltshire
Inscription : 2009-09-28

Re : Theme Fjalla: How to change Archive index order [SOLVED]

Merci, Mirovinben, pour la correction!

@bogo_mipps:

https://dotclear.org/documentation/2.0/ … s/archives

order
Indicates how to sort the dates. It can be either asc (ascending) or desc (descending). Default value is desc.


I Dotclear.

Hors ligne

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

Pied de page des forums

Sites map