Vous n'êtes pas identifié(e).
13 février 2024 Sortie de Dotclear 2.29
Pages : 1
Autrefois, avec dotclear 1.2, lorsque l'on voulait voir les billets du mois précédent, on avait ces billets qui s'affichaient "normalement", tels qu'il avait été décidé qu'ils devaient s'afficher à l'époque de leur rédaction.
Maintenant, avec dotclear 2, on a juste une liste de ces billets, sans rien.
Peut-on facilement revenir au fonctionnement de dotclear 1 ?
Merci.
A migré de dotclear 1.2.8 vers dotclear 2.3 le 28 mai 2011. Il essaie maintenant de comprendre ce que dotclear 2 lui apporte de plus.
Hors ligne
Oui, on peut parfaitement modifier le fichier template archive.html. Si t'es pas pressé, je peux regarder, ce soir chez moi, si je l'ai pas déjà écrit le code pour un de mes projets.
Hors ligne
En fait, il faut surtout enlever no_content="1" de <tpl:Entries">. Ce qui suit a été fait avec les fichiers par défaut et le thème "Blue Silence".
Voici le fichier archive_month modifié pour avoir la même présentation qu'en mode "home" (d'ailleurs copier-coller un bout de ce fichier).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{tpl:BlogLanguage}}" lang="{{tpl:BlogLanguage}}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX"}}" />
<title>{{tpl:lang Archives}} - {{tpl:ArchiveDate}} - {{tpl:BlogName encode_html="1"}}</title>
<meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
<meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />
<meta name="date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
<meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang Archives}} - {{tpl:ArchiveDate}} - {{tpl:BlogName encode_html="1"}}" />
<meta name="dc.language" content="{{tpl:BlogLanguage}}" />
<meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />
<meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
<meta name="dc.date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
<meta name="dc.type" content="text" />
<meta name="dc.format" content="text/html" />
<link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
<link rel="up" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
<link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
<tpl:ArchiveNext><link rel="next" href="{{tpl:ArchiveURL}}"
title="{{tpl:ArchiveDate encode_html="1"}}" /></tpl:ArchiveNext>
<tpl:ArchivePrevious><link rel="prev" href="{{tpl:ArchiveURL}}"
title="{{tpl:ArchiveDate encode_html="1"}}" /></tpl:ArchivePrevious>
<tpl:Entries no_content="1">
<link rel="chapter" href="{{tpl:EntryURL}}" title="{{tpl:EntryTitle encode_html="1"}}" />
</tpl:Entries>
{{tpl:include src="_head.html"}}
</head>
<body class="dc-archive-month">
<div id="page">
{{tpl:include src="_top.html"}}
<div id="wrapper">
<div id="main">
<div id="content">
<p id="navlinks">
<tpl:ArchivePrevious><a href="{{tpl:ArchiveURL}}" class="prev">« {{tpl:ArchiveDate encode_html="1"}}</a>
- </tpl:ArchivePrevious>
<a href="{{tpl:BlogArchiveURL}}">{{tpl:lang Archives}}</a>
<tpl:ArchiveNext> - <a href="{{tpl:ArchiveURL}}" class="next">{{tpl:ArchiveDate encode_html="1"}} »</a></tpl:ArchiveNext>
</p>
<div id="content-info">
<h2>{{tpl:ArchiveDate}}</h2>
</div>
<div class="content-inner">
<tpl:Entries>
<!-- # New day date -->
<tpl:DateHeader><p class="day-date">{{tpl:EntryDate}}</p></tpl:DateHeader>
<h2 class="post-title"><a
href="{{tpl:EntryURL}}">{{tpl:EntryTitle encode_html="1"}}</a></h2>
<p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}}
{{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}}
<tpl:EntryIf has_category="1">
- <a href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a>
</tpl:EntryIf>
</p>
<tpl:EntryTags>
<tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader>
<li><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a></li>
<tpl:TagsFooter></ul></tpl:TagsFooter>
</tpl:EntryTags>
<!-- # --BEHAVIOR-- publicEntryBeforeContent -->
{{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
<!-- # Entry with an excerpt -->
<tpl:EntryIf extended="1">
<div class="post-content">{{tpl:EntryExcerpt}}</div>
<p class="read-it"><a href="{{tpl:EntryURL}}"
title="{{tpl:lang Continue reading}} {{tpl:EntryTitle encode_html="1"}}">{{tpl:lang Continue
reading}}</a>...</p>
</tpl:EntryIf>
<!-- # Entry without excerpt -->
<tpl:EntryIf extended="0">
<div class="post-content">{{tpl:EntryContent}}</div>
</tpl:EntryIf>
<!-- # --BEHAVIOR-- publicEntryAfterContent -->
{{tpl:SysBehavior behavior="publicEntryAfterContent"}}
<!-- # Number of comments, trackbacks and attachments -->
<tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1">
<p class="post-info-co">
</tpl:EntryIf>
<tpl:EntryIf show_comments="1">
<a href="{{tpl:EntryURL}}#comments" class="comment_count">{{tpl:EntryCommentCount}}</a>
</tpl:EntryIf>
<tpl:EntryIf show_pings="1">
<a href="{{tpl:EntryURL}}#pings" class="ping_count">{{tpl:EntryPingCount}}</a></tpl:EntryIf>
<tpl:EntryIf has_attachment="1">
<a href="{{tpl:EntryURL}}#attachments" class="attach_count">{{tpl:EntryAttachmentCount}}</a></tpl:EntryIf>
<tpl:EntryIf operator="or" show_comments="1" show_pings="1" has_attachment="1">
</p>
</tpl:EntryIf>
</tpl:Entries>
</div>
</div>
</div> <!-- End #main -->
<div id="sidebar">
<div id="blognav">
{{tpl:Widgets type="nav"}}
</div> <!-- End #blognav -->
<div id="blogextra">
{{tpl:Widgets type="extra"}}
</div> <!-- End #blogextra -->
</div>
</div> <!-- End #wrapper -->
{{tpl:include src="_footer.html"}}
</div> <!-- End #page -->
</body>
</html>
Hors ligne
Merci ! Ça semble fonctionner. J'ai intégralement copié et collé ton code. Je préfère comme ça. Merci encore.
A migré de dotclear 1.2.8 vers dotclear 2.3 le 28 mai 2011. Il essaie maintenant de comprendre ce que dotclear 2 lui apporte de plus.
Hors ligne
ça marche ici aussi, merci !! :)
https://www.lutinot.fr/blog
DotClear V2.3
thème altowithjQuery
Hors ligne
En fait, il faut surtout enlever no_content="1" de <tpl:Entries">. Ce qui suit a été fait avec les fichiers par défaut et le thème "Blue Silence".
Voici le fichier archive_month modifié pour avoir la même présentation qu'en mode "home" (d'ailleurs copier-coller un bout de ce fichier).
[...]
Merci, je me suis rajouté un "navlinks2" en bas de page sur le modèle du navlinks en haut de page et tout roule :)
Hors ligne
Pages : 1
Vous n'êtes pas identifié(e).