Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Automatic security setting for a PageLayout

  Asked By: Lacy    Date: Feb 01    Category: Sharepoint    Views: 1114

I have a PageLayout using a content type say X.

The user will create a page using this PageLayout say abc.aspx

Is there a way to automatically set the permission for abc.aspx to certain group in SharePoint so that only those people

can view / edit the pages? for example: using some tags inside of Layout page which sets the security when a new page is created ?

One way could be write a ItemAdded / ItemUpdated event handler, check the content type in there and set Item level permission based on content type

but is there a OOB tag to achieve the same result?



1 Answer Found

Answer #1    Answered By: Kalpana Ghatge     Answered On: Feb 01

You are absolutely right that an Event Receiver would be the best approach for this. You cannot achieve this OOB using page  Layout.

I have seen an installation where they put javascript into a page layout  to restrict content  under certain circumstances. But I wouldn't recommend that - it's very easy to circumvent, and is a nasty hack!

Didn't find what you were looking for? Find more on Automatic security setting for a PageLayout Or get search suggestion and latest updates.