Displaying Categories

Now that you have categorized Tiki objects, you need to let your users know when they are viewing an object that has been categorized. There are a few ways to accomplish this:

Displaying the Category Path

Do you remember turning on the Show Category Path option? Tiki will display the full path (the object's category and its parent categories) at the top of each page.

Each category in the path is linked, allowing visitors to quickly view all the objects in a specific category.

  1. On the Home Page, click the category name in the path.
    File not found.

    If the page is in a subcatgeory, Tiki will show the full path of the object. For example, if you created a new category as a child of the Web 2.0 category,
    Home page
    The category path with a subcategory.

     Note

    When categorizing objects, if you place an object in both the parent and child category, Tiki will display both category paths as shown here:
    Edit  page
    Selecting the parent and child category results in two paths.
  2. The category page appears, listing all items in the category.
    File not found.


Use the Browse in buttons to filter the list by specific type (such as wiki pages or blogs).

Displaying Category Objects

Tiki can automatically display a list of all items in the same category as a specific page. This makes it very easy to have a list of "related items" on a wiki page.

  1. Enable the Show category objects option on the Administration: Category page.
    File not found.
  2. Navigate to the HomePage. At the bottom of the page, Tiki shows all the objects in the same category as the HomePage (that is, the Web 2.0 category).
    File not found.


As with the Category Path, visitors can click the category name to display the category browser.

Using the Category Plugin

But what if you want to show a list of items in a category on a page that is not in the category? You can use the Category Plugin to accomplish this! Let's create a list of Web 2.0 wiki pages on the AnotherPage.

  1. From the HomePage, click the AnotherPage link.
    AnotherPage
    The AnotherPage wiki page.

    Notice that the AnotherPage is not part of the Web 2.0 category. It does not have the category path at the top of the page, nor does it have the list of category objects at the bottom of the page.
  2. Click the Edit button.
  3. Enter the following in the Edit area:
    {CATEGORY(id="1",types="wiki")}{CATEGORY}

    This will generate a list of objects in category 1 (Web 2.0), but only wiki pages. Remember, we also added the blog into the category.

     Tip

    You can use the Tiki Help System to add the Category plugin.
    File not found.
  4. Click Save. Tiki saves the page. Now there is a list of wiki pages in the Web 2.0 category.
    Another Page
    The page now includes a list of wiki pages in the Web 2.0 category.



<HR>

Copyright

This guide is based on content originally published by KeyContent.org.

This guide is Copyright (C) 2007-2013, 2019 by Rick Sapir and others under a Creative Commons Attribution-Share Alike 4.0 License. Some rights reserved.

Essentially, you are are free:

Image

to Share — to copy, distribute and transmit the work
Image

to Remix — to adapt the work


Under the following conditions:

Image
Attribution. You must attribute the work to me, as the original licencor, but not in any way that suggests that I endorse you or your use of the work.
Fair attribution includes a return link to http://tikiforsmarties.com (for online use) and mention of primary author (Rick Sapir) and original publisher (KeyContent.org).
Image

Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license.


Please read http://creativecommons.org/licenses/by-sa/3.0/legalcode for the full license.

Tiki®, TikiWiki® and the Tiki logo are registered trademarks of the Tiki Software Community Association, used with permission.