User Tools

Site Tools


res:plugins:entrylist

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
res:plugins:entrylist [2026/01/05 19:39] – [Changelog] ludvikres:plugins:entrylist [2026/01/06 07:54] (current) – [Changelog] fraenkiman
Line 32: Line 32:
 | ''sort'' | ''asc/desc'' | Sorting order. Default: ''asc''. Applies to years/months/days and also to entries within a day (by entry id / time). | | ''sort'' | ''asc/desc'' | Sorting order. Default: ''asc''. Applies to years/months/days and also to entries within a day (by entry id / time). |
 | ''noentries'' | text | If the resulting list is empty, output this text instead. | | ''noentries'' | text | If the resulting list is empty, output this text instead. |
 +| ''+FORMAT''   | time format             | Output format for time (strftime-style tokens). Override the entry time (e.g. ''[entrylist=+%H:%M y=23]'').                                  |
  
 ==== Date & time formats (important) ==== ==== Date & time formats (important) ====
Line 41: Line 42:
   * Month and year headings are automatically derived from that admin short date format.   * Month and year headings are automatically derived from that admin short date format.
   * You can override these defaults per tag with ''yformat/mformat/dformat''.   * You can override these defaults per tag with ''yformat/mformat/dformat''.
 +  * The default time format comes from the admin setting ''locale.timeformat''.
 +  * You can override the entry time format for a single ''[entrylist]'' tag.
  
 This means the Entrylist headings follow the admin-configured formats for many locales (e.g. German, English, Spanish, French, Italian, Greek, Dutch, Danish, Czech, Japanese, Portuguese/Brazil, Russian, Turkish, …), including formats with literal characters like ''年/月/日''. This means the Entrylist headings follow the admin-configured formats for many locales (e.g. German, English, Spanish, French, Italian, Greek, Dutch, Danish, Czech, Japanese, Portuguese/Brazil, Russian, Turkish, …), including formats with literal characters like ''年/月/日''.
Line 85: Line 88:
 </code> </code>
  
 +**Override the entry time format (per tag)**
 +<code>
 +[entrylist=+%H:%M y=23]
 +</code>
 +
 +**Overwrite heading and entry time (v1.0.3 like)**
 +<code>
 +[entrylist=+%H:%M y=23 yformat="%Y" mformat="%B" dformat="%d."]
 +</code>
 ==== Notes ==== ==== Notes ====
   * The list is built from FlatPress entries and grouped by their entry date (the date stored in the entry id).   * The list is built from FlatPress entries and grouped by their entry date (the date stored in the entry id).
   * The plugin uses a cache file (''plugin_entrylist_tag.txt'' in FlatPress' cache directory) and automatically invalidates it when entries are published or deleted.   * The plugin uses a cache file (''plugin_entrylist_tag.txt'' in FlatPress' cache directory) and automatically invalidates it when entries are published or deleted.
 +  * The entry time is wrapped in a span you can style via CSS: 
 +<code html> 
 +  <span class="entrylist-time">14:30</span> 
 +</code> 
 +==== Screenshots ==== 
 +| {{:res:plugins:pierovdfn:entrylist1_0_3.png?400|}} | {{:res:plugins:pierovdfn:entrylist1_0_4.png?400|}} | \\ 
 +|Preview version 1.0.3| Preview version 1.0.4 |
 ==== License ==== ==== License ====
 GNU GPLv2 GNU GPLv2
Line 103: Line 121:
  
 [[https://github.com/flatpressblog/flatpress-extras/tree/master/thirdparty/plugins/entrylist | github repo]] of Entrylist plugin [[https://github.com/flatpressblog/flatpress-extras/tree/master/thirdparty/plugins/entrylist | github repo]] of Entrylist plugin
-===== Changelog =====+==== Changelog ====
 == 2026-01-05: Version 1.0.4 == == 2026-01-05: Version 1.0.4 ==
-  * Respects the admin-configured short date format+  * Respects the admin-configured short date and time format
   * Accepts 4-digit years (2001–2099) in addition to ''YY''   * Accepts 4-digit years (2001–2099) in addition to ''YY''
   * Per-tag state reset: multiple ''[entrylist]'' tags on one page no longer affect each other   * Per-tag state reset: multiple ''[entrylist]'' tags on one page no longer affect each other
Line 118: Line 136:
 Please ask for help on the [[https://forum.flatpress.org/viewtopic.php?t=848|FlatPress Forum]]. Please ask for help on the [[https://forum.flatpress.org/viewtopic.php?t=848|FlatPress Forum]].
  
-{{:res:plugins:entrylist1.0.3.jpg?400|}}  {{:res:plugins:entrylist_1.0.4.jpg?400|}} \\ 
-Preview version 1.0.3 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Preview version 1.0.4 
  
  
res/plugins/entrylist.1767638362.txt.gz · Last modified: by ludvik

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki