We are updating component field while publishing the component, eg. When the component is getting published we want to update current date time to PublishDate field of the component. We have written this code in .net assembly(c#). While publishing component is getting failed with an error "You do not have permission to perform this action"
We used to do this in vbscript templates but we are migrating to compound template there we are facing this issue.
Tridion 2011 no longer allows publishing or editing other items from templating code by default.
However, it can be activated by modifying the allowWriteOperationsInTemplates
attribute on the Tridion.ContentManager.Config file:
<tridion.contentmanager.security allowAutomaticUserCreation="true" hideOrganizationalItemsNoAccess="false" allowWriteOperationsInTemplates="true">
I believe that out of the box Tridion 2011 does not allow the templates to make any changes to items. This behavior can be overridden in the configuration. If anyone would know how to do this exactly, please add the info, since I cannot find it in the docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With