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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Article category


Go to End


3 Posts   4214 Views

Avatar
freeyland

Community Member, 22 Posts

10 July 2007 at 1:50am

Edited: 10/07/2007 1:51am

In the docs:
http://doc.silverstripe.com/doku.php?id=datamodel
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

Community Member, 94 Posts

11 July 2007 at 10:02am

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

Community Member, 22 Posts

7 August 2007 at 1:56am

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