The PortalContext
is an object that represents a portal in a particular state, using these properties:
portal
page
community
displayMode
ATG Portal includes a request-scoped component that makes Portal objects accessible as properties of a Nucleus component. This component, /atg/portal/PortalContext
, provides access to Portal objects through these properties. You can use the PortalContext
properties to access the state of the portal associated with the request. Access to these properties in the PortalContext
enables you to, for example, use targeting rules like “Users whose PortalContext.community
is Tennis.” Each attribute of the PortalContext
is set by an element of the Portal Filter Chain.