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/03 00:31] – [Changelog] ludvikres:plugins:entrylist [2026/01/06 07:54] (current) – [Changelog] fraenkiman
Line 3: Line 3:
  
 ==== Description ==== ==== Description ====
-The plugin adds the BBCode tag "Entrylist"Requires the [[doc:plugins:standard#bbcode|BBCode]] plugin+The plugin adds the BBCode tag ''entrylist''It requires the [[doc:plugins:standard#bbcode|BBCode]] plugin and allows you to list blog entries grouped by their **entry date** (year → month → day → entries).
-It allows to list the entries of the blog.+
  
 <WRAP right round tip 350px> <WRAP right round tip 350px>
-**Tip:**\\ The plugin does not include a widget. However, you can create a static page and then use the BlockParser plugin to place it as a widget in the menu column.</WRAP>+**Tip:**\\ 
 +The plugin does not include a widget. However, you can create a static page and then use the BlockParser plugin to place it as a widget in the menu column. 
 +</WRAP>
  
-These are it options:+==== Usage ==== 
 +Basic syntax: 
 +  [entrylist <options>]
  
-''y=YY'' list the entries for the year YY.+You can filter by year/month/day: 
 +  * ''y'' filters by year 
 +  * ''m'' filters by month (requires ''y''
 +  * ''d'' filters by day (requires ''y'' and ''m'')
  
-''m=MM'' list the entryes for the month MM. Y param is required.+If no filter is given, the plugin outputs a hierarchical archive list (years → months → days → entries).
  
-''d=DD'' list the entries fot the day DD. and m are required.+==== Parameters ==== 
 +^ Parameter ^ Values ^ Description ^ 
 +| ''y'' | ''YY'' or ''YYYY'' | List entries for a year. ''YY'' means 2000–2099 (e.g. ''23''2023). ''YYYY'' is accepted for convenience in the range 2001–2099 (e.g. ''2025''). | 
 +| ''m'' | ''MM'' or ''M'' | List entries for a month. Requires ''y''. Values 1–12 (''1'' will be treated as ''01''). | 
 +| ''d'' | ''DD'' or ''D'' | List entries for a dayRequires ''y'' and ''m''. Values 1–31 (''2'' will be treated as ''02''). Invalid dates (e.g. 31/02) return “no entries”. | 
 +| ''yformat'' | date format | Output format for year headings (strftime-style tokens). Overrides default. | 
 +| ''mformat'' | date format | Output format for month headings (strftime-style tokens). Overrides default. | 
 +| ''dformat'' | date format | Output format for day headings (strftime-style tokens). Overrides default. | 
 +| ''link'' | ''on/off'' (also ''false'') | Whether entry titles should link to the entry. Default: ''on''. Use ''off'' or ''false'' to disable. | 
 +| ''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. | 
 +| ''+FORMAT''   | time format             | Output format for time (strftime-style tokens). Override the entry time (e.g. ''[entrylist=+%H:%M y=23]'')                                 |
  
-''yformat'' the format for the year. It is in the form of //date_modifier//.+==== Date & time formats (important) ==== 
 +FlatPress allows admins to configure the site short date format under:\\ 
 +''Administration → Configuration → International settings''.
  
-''mformat'' the format for the monthIt is in the form of //date_modifier//.+**Default behaviour (version 1.0.4):** 
 +  * Day headings use the configured admin date format (''locale.dateformatshort'') **as-is**. 
 +  * Month and year headings are automatically derived from that admin short date format. 
 +  * 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.
  
-''dformat'' the format for the dayIt is in the form of //date_modifier//.+This means the Entrylist headings follow the admin-configured formats for many locales (e.gGerman, English, Spanish, French, Italian, Greek, Dutch, Danish, Czech, Japanese, Portuguese/Brazil, Russian, Turkish, …), including formats with literal characters like ''//日''.
  
-''link=[on/off]'' the title should be also a link?+==== Examples ==== 
 +**Entrylist for the whole year 2023** 
 +<code> 
 +[entrylist y=23] 
 +</code>
  
-''sort=[asc/desc]'' the sorting for entries: asc is ascending, desc is descending. Asc is the default value.+**Same year, using a 4-digit year** 
 +<code> 
 +[entrylist y=2023] 
 +</code>
  
-''noentries'' if there aren’t entrieswhat should output+**If there is no entry in the whole year 2024, output “none at home”** 
 +<code> 
 +[entrylist y=24 noentries="none at home"
 +</code>
  
-==== Example ====+**Entrylist only for January 2023** 
 +<code> 
 +[entrylist m=01 y=23] 
 +</code>
  
-**Entrylist for the whole year 2023** +**Entrylist only for day 12 of January 2023** 
-<code>[entrylist y=23]</code>+<code> 
 +[entrylist d=12 m=01 y=23] 
 +</code>
  
-**If there is no entry in the whole year 2024then issue message "none at home"** +**Same daybut without links to the posts** 
-<code>[entrylist y=24 noentries="none at home"]</code>+<code> 
 +[entrylist d=12 m=01 y=23 link=off] 
 +</code>
  
-**Entrylist only for the month of January in year 2023** +**Descending order** 
-<code>[entrylist m=01 y=23]</code>+<code> 
 +[entrylist y=23 sort=desc] 
 +</code>
  
-**Entrylist only for day 12 in the month of January in year 2023** +**Override heading formats** 
-<code>[entrylist d=12 m=01 y=23]</code>+<code> 
 +[entrylist y=23 yformat="%Y" mformat="%B %Y" dformat="%A, %e. %B %Y"] 
 +</code>
  
-**Entry list only for day 12 in the month of January in year 2023 without link to the post** +**Override the entry time format (per tag)** 
-<code>[entrylist d=12 m=01 y=23 link=off]</code>+<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 ==== 
 +  * 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 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
  
 ==== Download ==== ==== Download ====
 +{{ res:plugins:pierovdfn:entrylist1_0_4.zip |}}
 +
 +{{ res:plugins:entrylist_1_0_3.zip |}}
 +
 {{ res:plugins:pierovdfn:entrylist1_0_2.zip |}} {{ res:plugins:pierovdfn:entrylist1_0_2.zip |}}
-{{ res:plugins:entrylist1_0_4.zip |}} 
  
-===== Changelog =====+ 
 +==== Git Repo ==== 
 + 
 +[[https://github.com/flatpressblog/flatpress-extras/tree/master/thirdparty/plugins/entrylist | github repo]] of Entrylist plugin 
 +==== Changelog ===
 +== 2026-01-05: Version 1.0.4 == 
 +  * Respects the admin-configured short date and time format 
 +  * 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 
 + 
 +== 2026-01-03: Version 1.0.3 == 
 +  * With time of creation of the post 
 == 2025-02-26: Version 1.0.2 == == 2025-02-26: Version 1.0.2 ==
   * Compatibility with PHP 8.0+ established   * Compatibility with PHP 8.0+ established
-== 2026-01-02: Version 1.0.4 == 
-  * time format corrected  
  
-**Support**+**Support**\\ 
 +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/entrylist.1767396704.txt.gz · Last modified: by ludvik

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki