|On object||TMLContext "this"|
Returns a portlet object for the current WebTML portlet
The portlet object provides portlet specific functionalities, including access to the portlet configuration and registration.
Outside of any explicit WebTML portlet this property returns the implicit root portlet, which is used as base for portlet registration.
As the portlet registry is a part of the users personalisation profile it is not available if the user has no profile. In that case the property this.portlet returns null.
A portlet object
|Allowed in script types||