Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Deletion of Pages and blocks for a specific language

$
0
0

Hi Team,

Im using Episerver 11.12

I have designed a gadget which will allow the user to delete the content for the selected language. So when the user selects the content page in the dropdown and the language and click on delete below line of code executes in the backend and it deletes the page content for that language.

DataFactory.Instance.DeleteLanguageBranch(page.PageLink, language, AccessLevel.Delete);

But i noticed that it only deletes the page and not the block in that language which was inside that page. 

So for example: If i have a page1 in language(en, de) which has block1 in language(en, de) by the help of the above code only page1 de language gets deleted and if we look inside block1 i can see both languages present.

Can anyone help me on how i can delete the content inside those pages for that language.


Viewing all articles
Browse latest Browse all 8020

Trending Articles