Macro Security with the Live Template Macro - 4.x
Macro Security with the Live Template Macro - 4.x
Description
The live-template macro (part of the ServiceRocket's Scaffolding Add-on) provides powerful capabilities for Site Administrators and Space Administrators to provide template-based content, as it allows the content of a page template to be rendered within a page.
This has powerful benefits from a Macro Security perspective.
- Space-specific templates (created by Site Administrators or Space Administrators) or Global templates (created by Site Administrators) can include macros whose use is restricted by Macro Security, thereby controlling both the macro and its parameters.
- Users of those templates can control the parameters for those templates, without gaining access to the macros or macro parameters used by those templates.
- This alleviates the need for Administrators to secure pages using those templates through the use of "edit" page restrictions.
This is an ideal mechanism for providing and controlling restricted macros within less restricted pages.
Example Configuration
In the Macro Security configuration that governs its configuration, a statement similar to the following is used:
In the above example:
sql-query | indicates it is defining the Macro Security to be associated with the SQL Query macro |
&live-template | indicates to invoke the Live template security support |
.datasource.qaDS | indicates that it is referring to the Parameter Restriction for the "datasource" parameter, and applies only to the datasource named "qaDS" |
*global | indicates the restriction applies to all global templates |
space:QA | indicates the restriction also applies to the space templates defined within the space having a spaceKey = "QA" |
, multiple selections available,
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.