Developer forum

Forum » Development » Unhiding page in Menu in API.

Unhiding page in Menu in API.

Yasharth Tahiliani
Reply

Hi, 

I have created a page but hidden it in the navigation menu. Is there a way of unhiding it in the API? 

That would be really useful.

Look forward to hearing from you.

Regards,

Yash.


Replies

 
Nicolai Høeg Pedersen
Reply

var page = Dynamicweb.Content.Page.GetPageByID(1);

page.SetHidden(false);

page.Save();

 

You must be logged in to post in the forum