Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Starting DOM from a new mainmenu-item

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: 604 Views
  • lx
    Avatar
    Community Member
    82 Posts

    Starting DOM from a new mainmenu-item Link to this post

    Hi,

    in the cms i inserted a MainMenu-item "DATA" with this code:

    <?php
    class MyDataAdmin extends LeftAndMain {

    static $url_segment = 'daten';
    static $url_rule = '$Action/$ID';
    static $menu_title = 'DATA';
    ...

    When i click on this button, the cms-sidebar lists many of my classes that extend DataObject. (for example: Category, Product, Customer,...)

    Now i want to load the DataObjectManager for the clicked DataObject (for example: Products) in MyDataAdmin_right.ss.
    It would be nice if the DOM is called with ajax, like a click on a site-tree element.

    thanks

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