Loading...
 
Features / Usability

Features / Usability


List Pages in a Category by Letter

posts: 11 United States

I would like to organize the pages in a category by the first letter of the titles (like this: https://en.wikipedia.org/wiki/Category:History_of_Africa" class="wiki wikinew text-danger tips">https://en.wikipedia.org/wiki/Category:History_of_Africa ). Currently I am using the Category Plugin but this just seems to generate a list of pages, which is cumbersome when a category contains more than a small number of pages. How do I do list by first letter in Tiki?

I looked into the List plugin, but I didn't see any obvious ways to do this (although it is fairly complex so perhaps I just missed it). Any help would be appreciated!

posts: 8633 Israel

Hello Evan,

I just had to do something related a week ago.

If you look at http://doc.tiki.org/Unified-Index you’ll see that the title_initial and title_firstword so you can use them.

In my case I needed to filter them so: http://doc.tiki.org/PluginList-filter-control-block#Tracker_items_title_that_start_with_the_letter_B

Now it may be a bit tedious but at least you can use 26 plugin List to filter by letter and organise them. ?

posts: 11 United States
Bernard Sfez / Tiki Specialist wrote:

If you look at http://doc.tiki.org/Unified-Index you’ll see that the title_initial and title_firstword so you can use them.

In my case I needed to filter them so: http://doc.tiki.org/PluginList-filter-control-block#Tracker_items_title_that_start_with_the_letter_B

Now it may be a bit tedious but at least you can use 26 plugin List to filter by letter and organise them. ?


That's actually the best idea I had come up with too - in lieu of Tiki not having a built-in feature to display pages like this, I am planning on building a template with a list plugin for each letter - that way I only have to change the category. Just to make sure, this is along the lines of what you're talking about right?

{LIST()}
{filter type="wiki page" categories=1}
{filter field="title_initial" exact="A"}
{LIST

posts: 8633 Israel

{QUOTE(thread_id=>75308)}That's actually the best idea I had come up with too - in lieu of Tiki not having a built-in feature to display pages like this, I am planning on building a template with a list plugin for each letter - that way I only have to change the category. Just to make sure, this is along the lines of what you're talking about right?

{LIST()}
{filter type="wiki page" categories=1}
{filter field="title_initial" exact="A"}
{LIST{QUOTE}

Yes that should be good.
You just need a lot of duplication.

Test it right and then copy paste the code, change "title_initial" and category ID depending on where you are at.

From memory, we have in tikilib a function to create A to Z list but I couldn’t find (back then) how to use it to avoid duplication og list plugins.

posts: 2428 Czech Republic

Hi Bernard,
actually for PluginTrackerlist or PluginTrackerfilter there is param showinitials to display the A-Z letters and filter by them. How can we do the same with PluginList? Is it a missing feature in the mighty LIST?

Cheers,
luci

Bernard Sfez / Tiki Specialist wrote:

Hello Evan,

I just had to do something related a week ago.

If you look at http://doc.tiki.org/Unified-Index you’ll see that the title_initial and title_firstword so you can use them.

In my case I needed to filter them so: http://doc.tiki.org/PluginList-filter-control-block#Tracker_items_title_that_start_with_the_letter_B

Now it may be a bit tedious but at least you can use 26 plugin List to filter by letter and organise them. ?

posts: 8633 Israel
luciash d' being 🧙 wrote:

Hi Bernard,
actually for PluginTrackerlist or PluginTrackerfilter there is param showinitials to display the A-Z letters and filter by them. How can we do the same with PluginList? Is it a missing feature in the mighty LIST?

Cheers,
luci


Wish added ?
https://dev.tiki.org/item7577-Add-a-param-showinitials-on-the-pluginList


posts: 3665 United States
Evan Thomas wrote:
Currently I am using the Category Plugin but this just seems to generate a list of pages, which is cumbersome when a category contains more than a small number of pages. How do I do list by first letter in Tiki?


The Category plugin has a sort and maxRecords setting that you can use to control how many pages are listed and in what order (e.g., by page name). Please see the docs for details.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
posts: 11 United States
Rick Sapir / Tiki for Smarties wrote:
The Category plugin has a sort and maxRecords setting that you can use to control how many pages are listed and in what order (e.g., by page name). Please see the docs for details.


Thank you for replying! I am aware of these functions but I don't know how they would help me sort pages by letter as I showed.


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting