Vous n'êtes pas identifié(e).
13 février 2024 Sortie de Dotclear 2.29
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
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
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
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
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
<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.
Le B.A.BA : https://abc.dotaddict.org
La doc DC2 : https://fr.dotclear.org/documentation/2.0
Mes extensions : https://www.mirovinben.fr/blog/index.ph … pluginsDC2
Mes marqueurs de template : https://www.mirovinben.fr/blog/index.php?post/id3553
Hors ligne
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).