Skip to main content Help Control Panel

 

English «   Yacs handbook «   Content management «  

What is the difference between a section and a category?

Sections feature security, overlays and rendering styles.

Simple blogging tools are able to classify posts into several categories, and YACS has this feature as well.

What are categories used for?

YACS categories allow you:

* to group together any set of pages

* to archive pages by weeks and by months (done automatically on article publication)

* to structure concepts into a categories tree, with sub-categories, etc.

* to add rendering steps to some pages (eg., the Featured category, to list some articles at the site home page)

What are sections used for?

At the same time, YACS also features sections. Actually, every article posted to a YACS site has to be anchored to exactly one section. Does it mean that sections are some sort of "super-categories"? Well, this may happen in some cases. But sections also have very specific attributes that categories do not have.

Access restrictions - Some sections are public, while others are reserved to authenticated members or only to associates. Of course, YACS ensures that access rules are cascaded to anchored articles. Create protected sections each time you want to restrict access to some information.

Overlay extension - Articles can be extended using the overlay interface. You just have to edit a section and to mention, in the overlay field, the name of the PHP class to use. For example, drop 'recipe' to transform a section to a cookbook, or 'poll' to create a section dedicated to polls. Of course, you can create overlays of your own.

Skin variant - While this has not been demonstrated yet, you can implement some skin variation for one section. Actually you can even select a specific skin for any section. Basically, this gives you the power of selecting quite rich rendering options for your site. For example, you can select one blog style for section A, and another blog style for section B. If you have a single skin, and want to transmit the variant you want to use, add the 'variant_XXXX' to the options field, where XXXX is your actual option. If you prefer to use a particular skin at some section, use 'skin_YYYY' instead, where YYYY is the name of the target skin.

Comments

Lucrecius on Mar. 3 2006 - #
Bernard :
And what about a categorie of sections ?

Why, thinking

"Categories aim transversal links between articles. That's fine when the relevant key-word stays in such places. But I've found some case where key-words only appear in section or sub-section area.
For example, words defining a group concept or a master data, that would be redundant in a lower level, like an article.

So, it would be nice to link sections in the same way we can do for with articles.

What do you think ?

Yacsly Yours,
Lucrecius

P.S. I searched in vain in forums for answers to my question... so I post it here. Perhaps you already have treated this point.



Yacsment Vôtre,

Lucrecius.. .

~Le pessimisme de l'intelligence et l'optimisme de la volonté~

Bernard on Mar. 4 2006 - #
I agree - Would you like to add this to the todo list for new features please?
Lucrecius on Mar. 6 2006 - #
Bernard :
What answer do you expect ?

"Yes, I do want it !
I already imagine, the way I will use it, in my educationnal work... miam miam. yippee
Yacsly Yours,
Lucrecius



Yacsment Vôtre,

Lucrecius.. .

~Le pessimisme de l'intelligence et l'optimisme de la volonté~