Philippe Bénard
Software Architect

Disable sitecore securitycontext in xslt


To use the same functionality in XSLT like the "SecurityDisabler" in codebehind you may use:

<xsl:value-of select="sc:EnterSecurityState(false())" />
    <!--the system ignores security while processing this segment of code-->
<xsl:value-of select="sc:ExitSecurityState()" />

or

<!--the system enforces security while processing this segment of code-->
<sc:disableSecurity>
    <!--the system ignores security while processing this segment of code-->
</sc:disableSecurity>
<!--the system enforces security while processing this segment of code-->

Found here

Best regards,

Phil B. - Sitecore Developer

Kommentare
Es wurden noch keine Kommentare zu diesem Eintrag geschrieben.
Kommentar hinzufügen
Vor und Zuname
E-Mail
E-Mail bei weiteren Kommentaren
Mein Kommentar