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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


942 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