Developer forum

Forum » Templates » Deleting / Altering a page item value from frontend on a Dynamiweb 8 solution

Deleting / Altering a page item value from frontend on a Dynamiweb 8 solution

Hans Ravnsfjall
Hans Ravnsfjall
Reply

This might sound like a bad idea, but from what I see in the API - it should be possible in DW9, but is it also possible in DW8?

What we want, is to be able set the checkbox of an item based page, and to delete a page from frontend. This will offcourse be done behind an extranet and or backend login

I presume deleting a page would be something like this in Dynamciweb 9


Dynamicweb.Content.IPageService.DeletePage(ID);

This however doesn´t work in Dynamicweb 8

Anyone have a suggestion on what this would look like in Dynamicweb 8?

/Hans


Replies

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Nevermind, I found it 👍🏻

its Dynamicweb.Content.Page.GetPageById(ID).Delete();

/Hans

 

You must be logged in to post in the forum