Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Article category


Reply

3 Posts   3650 Views

Avatar
freeyland

10 July 2007 at 1:50am (Last edited: 10 July 2007 1:51am), Community Member, 22 Posts

In the docs:
[url]http://doc.silverstripe.com/doku.php?id=datamodel[/url]
it is explained how to add a different categories to an article.

How do I add categories to an article? Do I need to make a pagetype category and then add diffrent pages for each categorie or can this be done when selecting an article and add a category on the fly? Is it possible to add more than 1 category to 1 article?

Avatar
xmedeko

11 July 2007 at 10:02am Community Member, 94 Posts

Make a Category as DataModel only, it need not to be Page. If you make many_many relation between Article and Category, then you may have more Categories for one Article.

SS supports all main database relations: has_one (1:1), has_many (1:N), many_many (N:N).

Avatar
freeyland

7 August 2007 at 1:56am Community Member, 22 Posts

xmedeko,

Where do I administer the categories? In the document it shows how to add the categories but what CMSfield type do I need to use?

Thx