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.

Data Model Questions /

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

Current page Treemultiselectfield?

Go to End

2 Posts   1561 Views


Community Member, 541 Posts

29 March 2009 at 9:51am

I am not quite sure how to describe what I am trying to do (which doesn't help), but I will try my best.

My first level page has two sets of available navigation, generated from two TreeMultiselectFields in the CMS. I need a way of dynamically discovering if the current sub page is in one list of the other, and then generate the required list as navigation ont hat page too.

I was thinking I need to use Dataobject::get() and then run a comparison in the Controller class, but I am not really sure the best way to do this??

Any help is greatly appreciated!!



Community Member, 541 Posts

29 March 2009 at 3:31pm

Right, maybe I can refine this a bit:

How can I retrieve the results of a TreeMultiselectField from a parent?

The TreeMultiselectField is Called 'Box1Options'.

I have tried:

- $Results = $this->Parent()->Box1Options;
- $Results = Dataobject::get($this->Parent())

And a couple of other things too. I cant seem to get the results.