Author: F. Hoffmann, 2003/08/14
In case DTML code is written in a text section object within the content, it makes sense to limit the access to this section since 'programming mistakes' as the case may be caused by editors might get in the way of the site display.
Solution: For this purpose the system meta-attribute DC.accessRights is being introduced which is commonly configured as 'multiselect'.
dc_accessrights_restrictededitors_ger.xml
(728Bytes)
Comment: If instead of this the presentation access is available only, access differentiation can be managed with DTML means in the way of the following code fragment:
<dtml-if "AUTHENTICATED_USER.has_role('Authenticated')">Button1 / Link<dtml-else>Button2 / NoLink</dtml-if>