Getting Started: Adding a Category: Difference between revisions
From Joomla! Documentation
Created page with "<translate> ==Introduction== </translate> <translate> Website owners with more than a handful of articles should think about how best to present content for ease of navigatio..." |
No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude><languages /></noinclude> | |||
<translate> | <translate> | ||
==Introduction== | ==Introduction== <!--T:1--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:2--> | |||
Website owners with more than a handful of articles should think about how best to present content for ease of navigation. For example, if you have a zoo, a museum, a mineral collection or just a large garden you may have perhaps 1000 specimens to describe. One article for each specimen, with photographs, needs some organisational structure. If the articles were files you would probably put them in a file hierarchy. In a CMS, articles are not files but categories provide for a similar tree-like structure. Example :</translate> | Website owners with more than a handful of articles should think about how best to present content for ease of navigation. For example, if you have a zoo, a museum, a mineral collection or just a large garden you may have perhaps 1000 specimens to describe. One article for each specimen, with photographs, needs some organisational structure. If the articles were files you would probably put them in a file hierarchy. In a CMS, articles are not files but categories provide for a similar tree-like structure. Example :</translate> | ||
<translate> | <translate> | ||
<!--T:3--> | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 25: | Line 28: | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:4--> | |||
Sub-categories may have further sub-categories too. An optimal number seems to be about seven.</translate> | Sub-categories may have further sub-categories too. An optimal number seems to be about seven.</translate> | ||
<translate> | <translate> | ||
==Menu Item Types== | ==Menu Item Types== <!--T:5--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:6--> | |||
There are two menu item types designed to work with Categories:</translate> | There are two menu item types designed to work with Categories:</translate> | ||
<translate> | <translate> | ||
<!--T:7--> | |||
* '''Category Blog.''' This is a page layout that has one or two leading article tasters, often full page width, then several more tasters in two or three columns, and finally a pagination mechanism to link to more articles in the same category. The taster is the content before the page-break. The Site Home page is a category blog that includes All Categories.</translate> | * '''Category Blog.''' This is a page layout that has one or two leading article tasters, often full page width, then several more tasters in two or three columns, and finally a pagination mechanism to link to more articles in the same category. The taster is the content before the page-break. The Site Home page is a category blog that includes All Categories.</translate> | ||
<translate> | <translate> | ||
* '''Category List.''' This is a list layout that displays a list of article titles.</translate> | <!--T:8--> | ||
* '''Category List.''' This is a list layout that displays a list of article titles in a category.</translate> | |||
<translate> | <translate> | ||
==Create a Category== | ==Create a Category== <!--T:9--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:10--> | |||
The article mentioned in this Getting Started series, ''My First Article'', was a bit of an experiment. There may be more experiments so why not create an Experiments category? Proceed as follows:</translate> | The article mentioned in this Getting Started series, ''My First Article'', was a bit of an experiment. There may be more experiments so why not create an Experiments category? Proceed as follows:</translate> | ||
<translate> | <translate> | ||
<!--T:11--> | |||
* Expand the Content item in the Administrator menu and select the '''+''' icon alongside the Categories menu item. Note that other components, such as Banners and Contacts, can have categories too. They are kept separate from Content Categories.</translate> | * Expand the Content item in the Administrator menu and select the '''+''' icon alongside the Categories menu item. Note that other components, such as Banners and Contacts, can have categories too. They are kept separate from Content Categories.</translate> | ||
<translate> | <translate> | ||
<!--T:12--> | |||
* The '''Articles: New Category.''' form has only one compulsory field: the Title, in this case Experiments.</translate> | * The '''Articles: New Category.''' form has only one compulsory field: the Title, in this case Experiments.</translate> | ||
<translate> | <translate> | ||
<!--T:13--> | |||
* The '''Description.''' field is optional but it is best to fill it in as it used in some lists.</translate> | * The '''Description.''' field is optional but it is best to fill it in as it used in some lists.</translate> | ||
<translate> | <translate> | ||
<!--T:14--> | |||
* The '''Parent.''' field specifies whether this is category, -No Parent-, or a sub-category, selected from the list of categories.</translate> | * The '''Parent.''' field specifies whether this is category, -No Parent-, or a sub-category, selected from the list of categories.</translate> | ||
[[File:J4.x-getting-started-category-screenshot-<translate> | [[File:J4.x-getting-started-category-screenshot-<translate> | ||
<!--T:15--> | |||
en</translate>.png|border|800px]] | en</translate>.png|border|800px]] | ||
<translate> | <translate> | ||
<!--T:16--> | |||
Save and Close! This takes you to the '''Articles: Categories''' list screen.</translate> | Save and Close! This takes you to the '''Articles: Categories''' list screen.</translate> | ||
<translate> | <translate> | ||
==Change Article Category== | ==Change Article Category== <!--T:17--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:18--> | |||
* Select the '''Articles''' item from the {{rarr|Administrator,Content}} menu.</translate> | * Select the '''Articles''' item from the {{rarr|Administrator,Content}} menu.</translate> | ||
<translate> | <translate> | ||
* Select the article title link the '''Title''' column to open the article for editing. </translate> | <!--T:19--> | ||
* Select the article title link in the '''Title''' column to open the article for editing. </translate> | |||
<translate> | <translate> | ||
* | <!--T:20--> | ||
* In the '''Category''' field select the Experiments category from the drop-down list.</translate> | |||
<translate> | <translate> | ||
* Save and Close. There is no change in the Site Home page because the article is still marked as featured and the Home page is a category blog for All Categories.</translate> | <!--T:21--> | ||
* '''Save and Close.''' There is no change in the Site Home page because the article is still marked as featured and the Home page is a category blog for All Categories.</translate> | |||
<translate> | <translate> | ||
==Create Category List Menu Item== | ==Create Category List Menu Item== <!--T:22--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:23--> | |||
* Select {{rarr|Menus,Main Menu,+}} from the Administrator menu to open the Menus: New Item form.</translate> | * Select {{rarr|Menus,Main Menu,+}} from the Administrator menu to open the Menus: New Item form.</translate> | ||
<translate> | <translate> | ||
<!--T:24--> | |||
* Select {{rarr|Articles, Category List}} in the Menu Item Type field.</translate> | * Select {{rarr|Articles, Category List}} in the Menu Item Type field.</translate> | ||
<translate> | <translate> | ||
<!--T:25--> | |||
* Select {{rarr|Select,Experiments}} in the Choose a Category field.</translate> | * Select {{rarr|Select,Experiments}} in the Choose a Category field.</translate> | ||
<translate> | <translate> | ||
<!--T:26--> | |||
* Enter a Title, Experiments in this case. </translate> | * Enter a Title, Experiments in this case. </translate> | ||
<translate> | <translate> | ||
<!--T:27--> | |||
* Save and Close.</translate> | * Save and Close.</translate> | ||
<translate> | <translate> | ||
Go to the Site Home page and reload.</translate> | <!--T:28--> | ||
Go to the Site Home page and reload. Select the new Experiments menu item.</translate> | |||
[[File:J4.x-getting-started-category-list-screenshot-<translate> | [[File:J4.x-getting-started-category-list-screenshot-<translate> | ||
<!--T:29--> | |||
en</translate>.png|border|800px]] | en</translate>.png|border|800px]] | ||
<translate> | <translate> | ||
<!--T:30--> | |||
Not too pretty at this stage but the layout can be improved. Later...</translate> | Not too pretty at this stage but the layout can be improved. Later...</translate> | ||
<noinclude>[[Category:Joomla! 4.x]]</noinclude> |
Latest revision as of 17:25, 17 February 2023
Introduction
Website owners with more than a handful of articles should think about how best to present content for ease of navigation. For example, if you have a zoo, a museum, a mineral collection or just a large garden you may have perhaps 1000 specimens to describe. One article for each specimen, with photographs, needs some organisational structure. If the articles were files you would probably put them in a file hierarchy. In a CMS, articles are not files but categories provide for a similar tree-like structure. Example :
Category | Sub-categories |
---|---|
Mammals | Apes, Monkeys, Ungulates, Dogs, Cats |
Reptiles | Snakes, Lizards, Crocodiles, Turtles |
Amphibians | Frogs, Toads |
Birds | Raptors, Ducks, Gulls, Finches, Tits |
Insects | Spiders, Butterflies, Bees, Locusts |
Fish | Sharks, Salmon, Cod, Herring, Mackerel |
Sub-categories may have further sub-categories too. An optimal number seems to be about seven.
Menu Item Types
There are two menu item types designed to work with Categories:
- Category Blog. This is a page layout that has one or two leading article tasters, often full page width, then several more tasters in two or three columns, and finally a pagination mechanism to link to more articles in the same category. The taster is the content before the page-break. The Site Home page is a category blog that includes All Categories.
- Category List. This is a list layout that displays a list of article titles in a category.
Create a Category
The article mentioned in this Getting Started series, My First Article, was a bit of an experiment. There may be more experiments so why not create an Experiments category? Proceed as follows:
- Expand the Content item in the Administrator menu and select the + icon alongside the Categories menu item. Note that other components, such as Banners and Contacts, can have categories too. They are kept separate from Content Categories.
- The Articles: New Category. form has only one compulsory field: the Title, in this case Experiments.
- The Description. field is optional but it is best to fill it in as it used in some lists.
- The Parent. field specifies whether this is category, -No Parent-, or a sub-category, selected from the list of categories.
Save and Close! This takes you to the Articles: Categories list screen.
Change Article Category
- Select the Articles item from the Administrator → Content menu.
- Select the article title link in the Title column to open the article for editing.
- In the Category field select the Experiments category from the drop-down list.
- Save and Close. There is no change in the Site Home page because the article is still marked as featured and the Home page is a category blog for All Categories.
Create Category List Menu Item
- Select Menus → Main Menu → + from the Administrator menu to open the Menus: New Item form.
- Select Articles → Category List in the Menu Item Type field.
- Select Select → Experiments in the Choose a Category field.
- Enter a Title, Experiments in this case.
- Save and Close.
Go to the Site Home page and reload. Select the new Experiments menu item.
Not too pretty at this stage but the layout can be improved. Later...