-
Templating and Integration Guide
- Part 1: Concepts
- Part 2: Modules
- Part 3: Templates and Studio
- Part 4: Content Definitions and Views
- Part 5: Advanced Techniques
- Part 6: Setting up an integration environment
- Part 7: Step by step integration
- Further reading and resources
Skin rendering
Unlike other elements, the skin is not rendered by Jahia the same way, but instead wraps a content object. Because of this, the ${currentNode} expression does not reference the skin but the skinned object. The output of the wrapped node is also available through the ${wrappedContent} expression.
Example of a skin using the title of the skinned object
<jcr:nodeProperty node="${currentNode}" name="jcr:title" var="title"/>
<div class="skin">
<c:if test="${not empty title}">
<h3 class="title">${fn:escapeXml(title.string)}</h3>
</c:if>
${wrappedContent}
<div class="clear"></div>
</div>

