Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Navigation & pagination by sort criteria
In the German sub-forum there is a thread asking for a title Index.
Feature request: Enhance the article
and article_custom
txp:tags limit
and sort
attributes by an optional navigational meta level.
Proposals:
indexpage="1"
… Result: Push ‘A’ & get (only) all articles starting with “A…” (etc)- Granularity: Match n ‘letters’.
match="2"
= “Aa”, “Ab”, etc. stopwords="comma, separated, list"
(optional): Titles starting with ‘x’ should be sorted after the following word. Examples: The, it, ‘, “, der, die, das, etc.
Info: This question also came up (a while ago) in the tru_tags
thread. I was asking for a similar keyword A-Z index feature because tag clouds/lists don’t make much sense if you have more than n keywords. The same is valid for article archive pages.
Last edited by merz1 (2010-09-11 07:23:50)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: Navigation & pagination by sort criteria
Workaround: Maybe some kind soul can take the great but orphaned plug-in rss_suparchive
by Rob Sable and enhance it.
Article listings by date or by category/section. Archive menu by month or year with totals
Last edited by merz1 (2010-09-11 07:20:58)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: Navigation & pagination by sort criteria
merz1 wrote:
stopwords="comma, separated, list"
(optional): Titles starting with ‘x’ should be sorted after the following word. Examples: The, it, ‘, “, der, die, das, etc.
This can be done with soo_article_filter. I’m not quite sure how you want the other two items to function (your proposed indexpage
and match
attributes).
Code is topiary
Offline
Re: Navigation & pagination by sort criteria
Thanks Jeff! soo_article
is in the right direction. I will try to explain backward to finally get to the result:
- Regarding stopwords your
index_ignore
andindex_field
attributes are what I meant.index_field
is even more & good to have :) - My match proposal is best explained with the typical address book picture. All names starting with ‘A’ on one page would be
match="1"
. In a bigger address base you might want all names on one page starting with ‘Aa’. Second page would be ‘Ab’. This case of finer granularity can be covered bymatch="2"
. - The indexpage thing is the tricky part (the ‘…’ in the proposal) to explain.
- Negative: If
indexpage="0"
the output is the standard list only sorted bysort=""
. - Positive: If
indexpage="1"
the output only outputs one page/list for one matchedmatch="n"
criteria.
- Negative: If
Navigation: To get to the multiple outputs the indexpage="1"
attribute generates we need links (the ‘navigation’ part) to get to the single index pages. Those structural links we normally achieve by using links to sections or categories. Until now TXP does not have index links for all sort criteria.
Personal note: I feel like the use of tag-in-tag parsing with variable
, if_different
or even involving the brain twisting yield
tags could solve the multiple index links issue but I can’t get hold of a solution.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: Navigation & pagination by sort criteria
Of course the devs may well go for it, but I think this sort of feature will always remain in the realm of plugins. Incorporating it into core would make add complexity to what is already plenty complex (the underlying logic of article
). But it looks like a straightforward problem to tackle with a plugin or some raw PHP.
Code is topiary
Offline
Re: Navigation & pagination by sort criteria
Thanks Jeff for the thumbs up :) Sometimes I am happy that I am no developer.
Mainly I wrote it down because lately there have been some threads asking for a ‘link to some sorted selection’ and esp. the last one in the German forum which I think makes some sense. I only tried to transcribe the wish for index links into an understandable feature request.
And because I understand quite well that TXP is no address database and no catalog publishing CMS I do understand that the motivation to realize this feature might be pretty low.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline