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.

Customising the CMS /

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

Many_many-example not saving the categories in the database

Go to End



Community Member, 1 Post

26 March 2011 at 3:00am

Edited: 26/03/2011 3:07am

Hi everyone!

Im using the many_many-example ([]=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!