Containers overview |
Containers are used as "boxes" for web parts. They consist of text that is displayed before the web part and after the web part which means they are used as an envelope for web part content. They have two advantages over using the ContentBefore and ContentAfter properties:
The containers can be managed in Site Manager -> Development -> Web part containers.
The Text before/after web part value can contain dynamically inserted values of the web part properties. You can insert them using the following expression:
{%propertyname%}
You will most often use the following expression to insert the container title:
{%ContainerTitle%}
These macro expressions are resolved even when macro resolving for the particular web part (Disable macros property) is disabled.
Here's an example of web part without container:
Here's an example of the same web part with container:
|