Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Showing only related object with HasManyDataObjectManager

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 634 Views
  • pingu
    Avatar
    Community Member
    75 Posts

    Showing only related object with HasManyDataObjectManager Link to this post

    Hi guys,

    Does anyone know if there's quick hack to show only related objects with HMDOM?

    I've got a scenario where I have hundreds of recipe entries which can be linked through ModelAdmin as "featured" on the homepage, so homepage has has_many relationship with recipes, and recipes has_one homempage.

    However, to streamline the updating of the site, the administrator would like to be able to unlink straight from the homepage without going through ModelAdmin.

    Using an HMDOM allows them to do this - but lists ALL the recipes in the database which they don't need, and I'd like to only display the ones which are related to the homepage.

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