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.

All other Modules /

Discuss all other Modules here.

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

GridFieldRelationHandler module released

Go to End

9 Posts   2839 Views


Community Member, 16 Posts

15 August 2013 at 11:20am

Hi Simon

This module is great!!. Good job.

I am however experiencing one problem. I have a dataobject "PageBanner" where it $belongs_many_many to a Page and a Page has a $many_many relationship to the "PageBanner". I have added $many_many_extraField on Page.php to add a Sort column to the many_many relationship.

So if I use the GridFieldManyRelationHandler and click "Change relation status" I can easily add the same PageBanner to multiple pages. On these different pages I can then change the sort order, so the banner is in the correct order on the different pages.

Now when I click "Change relation status" on a new page I am shown two versions of the PageBanner. It is appearing twice because the sort value on the many_many table is different.

Do you know of this problem and have ideas on how to fix?



Go to Top