Loading...
 
Skip to main content

Features / Usability


List Pages in a Category by Letter

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"Question 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!

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 docsQuestion for details.

HTH,

- RickQuestion | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.comQuestion
Tiki for SmartiesQuestion, your source for the best (and only) Tiki books, guides, and tutorials.
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 docsQuestion 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.


Hello Evan,

I just had to do something related a week ago.

If you look at http://doc.tiki.org/Unified-IndexQuestion 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_BQuestion

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

Bernard Sfez / Tiki Specialist wrote:

If you look at http://doc.tiki.org/Unified-IndexQuestion 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_BQuestion

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

{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.

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-IndexQuestion 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_BQuestion

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