You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a couple different blogging scenarios on the same DokuWiki site:
Traditional ordering by page creation date for a news-style section.
Ordering by pagename for meeting minutes that should display in page order. 2012-06-19 should be displayed after 2013-07-14 regardless of creation time.
It does not appear that this is supported. In particular, it seems like I can set a site-wide default, but I can't specify custom sort keys/orders on each directive.
The docs claim that all include flags are supported, so I've tried using "order" but nothing changes. In looking at the code, it appears that sort order is hard-coded to read from the config and cannot be overridden by flags.
Is this accurate? If so, might it make sense to check the flags/syntaxes used by the include plugin for setting a custom sort key? I'll try modifying my local install in the next day or two to check this but it'd be nice if this change could be made globally. I'd also appreciate feedback on this change. I haven't done PHP in over a decade, know nothing about the DokuWiki code but really need to implement this change for an organization I'm trying to sell on DW.
Thanks.
The text was updated successfully, but these errors were encountered:
The include flags for sorting are in fact not supported, they are only for the include modes where multiple pages are included in the include plugin. What you could do, however, is using the include plugin directly instead of the blog plugin. Pagination and the add new entry form will be missing but apart from that it should be pretty much the same.
I agree that the blog plugin should also support flags for the sorting key and order. Maybe the _get_included_pages()-function of the include plugin could be used by the blog plugin, too, in order to avoid code duplication - though the getBlog()-function includes a lot more metadata in the output. Maybe the getBlog()-function could also use the include plugin's function in order to get the (sorted) list of pages and then load the additional metadata and do the additional checks only for the first X pages that are really needed.
OK, for my use case I suppose I can just drop to the Include plugin for the situation where I need a custom page order, only I don't see that the include plugin lets me limit the number of pages retrieved from a namespace. Am I just missing this functionality? If not then it isn't an equivalent solution unfortunately.
I have a couple different blogging scenarios on the same DokuWiki site:
It does not appear that this is supported. In particular, it seems like I can set a site-wide default, but I can't specify custom sort keys/orders on each directive.
The docs claim that all include flags are supported, so I've tried using "order" but nothing changes. In looking at the code, it appears that sort order is hard-coded to read from the config and cannot be overridden by flags.
Is this accurate? If so, might it make sense to check the flags/syntaxes used by the include plugin for setting a custom sort key? I'll try modifying my local install in the next day or two to check this but it'd be nice if this change could be made globally. I'd also appreciate feedback on this change. I haven't done PHP in over a decade, know nothing about the DokuWiki code but really need to implement this change for an organization I'm trying to sell on DW.
Thanks.
The text was updated successfully, but these errors were encountered: