Security.ContentAccess GetLevel Example

This example demonstrates that GetBrowseLevel is a specific version of GetAccessLevel.

To query the browse level for a different item, you have to use GetAccessLevel, because GetBrowseLevel doesn't have an overload accepting a locator.

Smartsite SXML CopyCode image Copy Code
{security.contentaccess.getaccesslevel(browseaccess)}
{security.contentaccess.getbrowselevel()}
{buffer.set(otheritem,24660)}
{itemdata.field(title,$otheritem)} - {security.contentaccess.getaccesslevel($otheritem,browseaccess)}
Example Result CopyCode image Copy Code
100
100

Example item 2 - 0