Portal Features
Portals have a number of features available to them. These features can be enabled
and
disabled in the admin application. Within a Portal Theme, the presence or absence
of these
features can be checked for, and the corresponding functionality exposed or hidden.
Important: The Portal Features functionality has been superseded by the framework, but remains for backwards-compatibility.
The following features are available to Portals:
- Anonymous Browsing (
anonymousAccess
) - Document-Level Comments (
docLevelComments
) - Element-Level Comments (
elLevelComments
) - Custom Assemblies (
customAssemblies
) - "Was This Helpful" Widgets (
helpfulVote
)
The status of these features can be checked for using the
object's enabledFeatures
array or hasFeature
method. Before
exposing functionality to a Portal, the Portal Theme should always first check to
ensure that
it is enabled. For instance:
<#if portal.hasFeature('helpfulVote')> <#-- markup exposing functionality here --> </#if>