Archive summary alternative template
Posted: Wed Mar 04, 2015 7:59 pm
So, in archives, we often have an option to display all entries (using entries.tpl) for a specific month:
or build a simple list of entries (using entries_summary.tpl) for a specific month:
I would like to do something similar to entries_summary. I do want to iterate through all entries for a specific month, but I want the output to be more than what entries_summary.tpl typically contains, but much less than what entries.tpl is used for. Essentially, a hybrid between the two.
We have a number of features that allow us to specify a specific tpl to use when formatting output, such as serendipity_fetchPrintEntries, serendipity_printSidebar, as well as a number of plugins whose output can be altered when using a custom, predetermined tpl file in a template folder.
I do not think I can use serendipity_fetchPrintEntries because I am not trying to include the output within an existing page - I am trying to generate unique page content formatted via a custom tpl.
Anyone know if this can be done?
Code: Select all
{if $month.entry_count}<a href="{$month.link}">{/if}{$CONST.VIEW_FULL}{if $month.entry_count}</a>{/if}
Code: Select all
{if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if}
We have a number of features that allow us to specify a specific tpl to use when formatting output, such as serendipity_fetchPrintEntries, serendipity_printSidebar, as well as a number of plugins whose output can be altered when using a custom, predetermined tpl file in a template folder.
I do not think I can use serendipity_fetchPrintEntries because I am not trying to include the output within an existing page - I am trying to generate unique page content formatted via a custom tpl.
Anyone know if this can be done?