MenuRoot property.

Marcin Samojłowicz
Member since: 2016
 

After upgradnig from 7.11 to 11 I have encountered error of missing property of page. I have code like this :

(PageReference)CurrentPage["MenuRoot"]

And property MenuRoot is missing. In old application MenuRoot has value. Question :

Is this property comes from Epi? Because I can't find it in application code. And if it comes which can I use instead?

Have someone encountered this property?

#199697
Dec 06, 2018 15:49
Jake Jones
Member since: 2014
 

Was MenuRoot a dynamic property?

If so they were disabled in CMS 9 (https://world.episerver.com/documentation/upgrading/Episerver-CMS/9/Breaking-changes/#dynamic).

/Jake

#199704
Dec 06, 2018 17:17
Henrik Fransas
Member since: 2007
 

As Jake say, it sounds like it is a dynamic property that only was defined in admin.


Check in the admin interface if you can find it there.
And if it was, you need to change it to an ordinary property since dynamic properties are pretty much gone

#199709
Dec 07, 2018 8:26
Marcin Samojłowicz
Member since: 2016
 

Yes it was Dynamic property, thans for help guys :) 

#199715
Dec 07, 2018 11:25