Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Article category

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

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

Page: 1
Go to End
Author Topic: 3588 Views
  • freeyland
    Avatar
    Community Member
    22 Posts

    Article category Link to this post

    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?

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: Article category Link to this post

    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).

  • freeyland
    Avatar
    Community Member
    22 Posts

    Re: Article category Link to this post

    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

    3588 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.