Deletion Of Pages From Variant Sites

Hi,

I have made site variations of a publishing site. The variation labels that i have made are for English and German. The issue that i m facing is that whenever i try to delete the page from the source site the same is not deleted from the variant site.

I guess Moss doesn't support this by default. Is there a workaround for the same.

I have tried handling the ItemDeleted Event For the pages library but some how the event is not getting handled.

Please help me out with the same.

[528 byte] By [MayurJoshi] at [2008-2-16]
# 1

Hi,

Are your pages stored in a document library in the site?

Assuming your working with MOSS, you can try to create a WF that will run on the document library each time an item is deleted.

About the event handling, you should try to use ItemUpdated\ItemUpdating instead of deleted, from my tries it should work with deletion also.

Hope that was helpfull.

MorShemesh at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Enterprise Content Management...
# 2

Hi,

Yeah the pages are stored in the document library in the site. Finally i was able to attach the event handler dll to my document library and was able to delete the page as well.. By any chance are you aware of how the security permission of the page would get updated in the variant site when i update the same in the source site.

MayurJoshi at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Enterprise Content Management...
# 3
Hay,
By default an element will inherit its permissions from its father element (for example, a file from a folder\doc lib) if you change a file (with a permitted user) it's permissions will ramain the same.
MorShemesh at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Enterprise Content Management...
# 4

Hi,

Sorry but I couldn't get what you are trying to say.

Let me give you a scenario of my case. Let us consider that we create a page "Test.aspx" which has "full control" permissions for "Group1" on the source site. When i publish this page the same page would be created in the variant sites with the exact similar security permissions because of variation. Now i try to change the permissions of "Group1" to "Read" for the "Test.aspx" on the source site. The same is not reflected on the variant site.

The reason for which i can figure out is that there's no publish workflow called when you edit the permissions. So if you can highlight what we can do to replicate the security permission on the variant site.

MayurJoshi at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Enterprise Content Management...
# 5
Hay,
I'm sorry, but I'm not familiar with that problem, if your saying the neither WF nor EH fire when permissions are changed...
The best thing I think would be offering a new page to enter permissions, instead of the normal page. That page will be able to update the permissions and update the a property of the page file so the WF\EH will fire.
If such a solution would be good, tell me and I'll try to instruct you on ways to do that.

MorShemesh at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Enterprise Content Management...

SharePoint Products and Technologies

Site Classified