At the heart of the K2 content system is the categorical structure, and it's ability to pass view structure. This allows the creation of a layout 'template', and ability to make articles appear the same within that category.
Every view is set within the top level category, including the category layout views and the individual item views. Each child category can be assigned to the parent to inherit those parameters. Every article, when created, will by default inherit these parameters.
Heirarchical Structure
Categories can be structured in a tree-like format to allow organization of content. There are unlimited tiers for sub-categories, but a limit of 3 or 4 is suggested. Each category can have it's own unique set of view parameters, in addition to the ability to inherit from a parent category or any other category, regardless of their relationship.
Samples of parameter inheritance
-
Basic Website
-
Main Category - All of the view parameters get set here
- About Category - Inherits all view parameters from Main Category
- company information page - Inherits all view parameters from Main Category
- owner information page - Inherits all view parameters from Main Category
- Services Category - Inherits all view parameters from Main Category
- about products page - Inherits all view parameters from Main Category
- About Category - Inherits all view parameters from Main Category
-
-
Two category view layout
-
Main Category - All of the view parameters get set here
-
About Category - Inherits all view parameters from Main Category
- company information page - Inherits all view parameters from Main Category
- owner information page - Inherits all view parameters from Main Category
-
Products Category - This category will NOT inherit parameters, but will have it's own layout for product display
-
about products 1 Category- Inherits all view parameters from Products Category
- product 1 - inherits from products category
-
about products 2 category - This category can have it's own specific view parameters in order to showcase a particular line of products
- product 2 - inherits from products 2 category
-
-
-
Read 165 times
|
Published in
Category Management