Re: [Tiki-users] Browsing Pagination by alphabet letter instead of by page number

Jonny Bradley via TikiWiki-users <[email protected]>
Newsgroups gmane.comp.cms.tiki.user
Message-ID <[email protected]>
Hi Alessandro

Nice idea, the first initial is indexed separately so would be available in the search results. the file that does this is

    https://gitlab.com/tikiwiki/tiki/-/blob/master/lib/smarty_tiki/block.pagination_links.php

and there's no sign of being able to do initials in there so far, just show_numbers. So it would be possible i think to add a show_initials option, but decidedly non-trivial...

Unless anyone else knows otherwise?

jonny

p.s. however, i did do a project once where we used the alphabet for navigation, but i think i did it with a list plugin and a parameter for each group of letters and it looked a bit similar, something like:

url: searchpagename?initials=A+OR+B+OR+C

and then in the page

{LIST()}
  {filter field="title_initial" content="{{initials}}"}
{LIST}

[{{page}}?initials=A+OR+B+OR+C|A-C] | [{{page}}?initials=D+OR+E+OR+F+OR+G+OR+H|D-H] etc 




> On 29 Apr 2021, at 08:05, Alessandro Martinelli <[email protected]> wrote:
> 
> Hi Tikiers,
> 
> I'm using {LIST} with  {pagination max="15"} and when I have more than 15 results, pagination is activated and, at the bottom of the page, I have like |<<|1|2|>>|.
> 
> Now, since the list result are strings (Customer Name), it would be useful to have at the bottom, rather, something like |<<|A-D|F-Z|>>|, automatically generated by the systems as the item quantity increase. I expect, when there are thousands of results, to have
>  |<<|A|B|C|...|Z|>>| or something like that.
> 
> Is there a way of achieving this?
> 
> Thank you,
> 
> Alessandro
> 
> 
> 
> _______________________________________________
> TikiWiki-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.