This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class=”@Component.Fields.NewsStyle”> | |
<img src=”@Fields.HeaderImage.ID” alt=”@Fields.HeaderImage.AltText” /> | |
@* Note that Fields is just a shortcut to Component.Fields *@ | |
<h2>@Fields.Header</h2> | |
<h5>@Fields.NewsDate.ToString(“dd/MM/yy hh:mm”)</h5> | |
<div class=”body-text”> | |
@Fields.BodyText | |
</div> | |
<ul> | |
@* Now we'll loop over a ComponentLink field and grab the component title and a field *@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
</xsl:otherwise> | |
</xsl:choose> | |
</xsl:variable> | |
<xsl:choose> | |
<xsl:when test="$content/linkitem:link_component"> | |
<xsl:apply-templates select="$content/linkitem:link_component"> | |
<xsl:with-param name="linktitle" select="$link_title"/> | |
<xsl:with-param name="linktext" select="$linktext"/> | |
<xsl:with-param name="linkclass" select="$linkclass"/> | |
</xsl:apply-templates> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- TemplateBeginRepeat name="Component.Fields" --> | |
@@Field.Name@@ | |
<!-- TemplateBeginRepeat name="Field.Values" --> | |
<!-- TemplateBeginIf cond="Field.ContentType = 'text/plain'" --> | |
@@RenderComponentField(FieldPath, TemplateRepeatIndex)@@ | |
<!-- TemplateEndIf --> | |
<!-- TemplateBeginIf cond="Field.ContentType = 'tridion/field'" --> | |
<!-- TemplateBeginRepeat name="Field.Fields" --> | |
@@Field.Name@@ | |
<!-- TemplateBeginRepeat name="Field.Values" --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- TemplateBeginRepeat name="Component.Fields" --> | |
@@Field.Name@@ | |
<!-- TemplateBeginRepeat name="Field.Values" --> | |
<!-- TemplateBeginIf cond="Field.ContentType = 'text/plain'" --> | |
@@RenderComponentField(FieldPath, TemplateRepeatIndex)@@ | |
<!-- TemplateEndIf --> | |
<!-- TemplateBeginIf cond="Field.ContentType = 'tridion/field'" --> | |
<!-- TemplateBeginRepeat name="Field.Fields" --> | |
@@Field.Name@@ | |
<!-- TemplateBeginRepeat name="Field.Values" --> |
NewerOlder