]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FCategories
Initialize $html
[SourceForge/phpwiki.git] / pgsrc / Help%2FCategories
1 Date: Thu,  9 Dec 2010 14:51:45 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FCategories;
5   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
6   charset=UTF-8
7 Content-Transfer-Encoding: binary
8
9 **Categories** are a way to group pages that are related to the same subject.
10 They provide an easy way to browse the wiki.
11
12 In Phpwiki, categories are not stored in a separate namespace like in Mediawiki for
13 instance. A category is a page with a name that begins with "Category" and contains
14 a call the the [[Help:BackLinksPlugin|BackLinks plugin]].
15
16 == Creating a new category ==
17
18 The simplest way to create a new category is to to go the
19 [[:CategoryCategory|CategoryCategory]] page.
20
21 Enter its name (starting with "Category") and hit "CreatePage" button.
22
23 This will automatically insert the necessary plugins calls.
24
25 You might want to add at the beginning of the page a paragraph
26 explaining the purpose of the category.
27
28 Suppose you want to create a category called **~CategoryFruit**.
29 You might add:
30 {{{
31 This Category groups the different kinds of fruit.
32 }}}
33
34 By default, the new category is created as a subcategory of
35 [[:CategoryCategory|CategoryCategory]] (the "root" category).
36 You might want to change this (see below "Category hierarchies").
37
38 == Putting a page in a category ==
39
40 To put the article **banana** in ~CategoryFruit, you have to put at the end of the page:
41
42 {{{
43 ----
44 [[CategoryFruit]]
45 }}}
46
47 The ~CategoryFruit page will then display your text describing the
48 purpose of the category, then the list of pages in the category.
49
50 The can be done very easily by using the {{/themes/default/images/ed_category.png|[C]}}
51 button of the edit toolbar when editing the page.
52
53 == Category hierarchies ==
54
55 The simplest way to use categories is to use "flat" categories. But you
56 can also build a hierarchy of categories by putting categories themselves
57 in categories.
58
59 For example, you can put the {{{[[CategoryFruit]]}}} in {{{[[CategoryFood]]}}}
60 instead of default {{{[[CategoryCategory]]}}}.
61
62 == Tips and tricks ==
63
64 * Page [[:CategoryCategory]] is the root category. All categories should be subcategories of this category (recursively).
65 * If in a page you need to refer to a category, you should add a semi-colon: {{{[[:CategoryFruit]]}}}. This will create a link to the category //without// putting the page in the category (which would be the case if using {{{[[CategoryFruit]]}}}).
66 * You can put a page in several categories if needed.
67
68 ----
69 [[PhpWikiDocumentation]]