Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Many_many-example not saving the categories in the database

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

Page: 1
Go to End
Author Topic: 810 Views
  • emp-
    Community Member
    1 Post

    Many_many-example not saving the categories in the database Link to this post

    Hi everyone!

    Im using the many_many-example (http://doc.silverstripe.org/old/recipes:many_many-example?s[]=categories) to create categories for my project. Evertyhing was going according to plan until i try to add a new category. The name is not saved in the database and when i check in the db its saved as NULL instead of what i enterd. If i change them from null to a new name in the db manually they stay saved with the new name.

    Im using Silverstribe 2.4.5 and MySQL client version: 5.1.41.

    I copied the code from the example and created a new ArticleHolder with a Article subpage, so i figured it should work since i havent changed any of the names and such.

    edit: Also im getting <% sprintf(_t('ADDITEM','Add %s'),Category) %> next to the + sign in the cms where im suppoed to add the category. Dont know if that is something that is worth to be mentioned.

    Im really new to this so maybe that example doesnt work anymore.

    Thanks in advance for any help i can get!

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.