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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Starting DOM from a new mainmenu-item


Go to End


843 Views

Avatar
lx

Community Member, 83 Posts

23 January 2010 at 12:02pm

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