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.

Customising the CMS /

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

Nested Dataobject Parent?


Go to End


980 Views

Avatar
Graphicator

Community Member, 62 Posts

20 June 2011 at 9:44am

If I am using Unclecheese's DOM to access a nested Dataobject, is there a way to pick up its parent's ClassName. And since it's nested properly, is there a way to also grab it's grand-parent's ID or Classname? This is because I have A)Projects --> B)Tasks --> C)Timesheet

I also have A -> D)Issues -> Timesheet

So I want to be able to hit the "add timesheet" and have it dynamically pick up the classname of the parent and grandparent.