Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » GridFieldRelationHandler module released

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 1345 Views
  • guywatson
    Avatar
    Community Member
    15 Posts

    Re: GridFieldRelationHandler module released Link to this post

    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?

    Cheers

    Guy

    1345 Views
Page: 1 2
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.