Skip to content

Instantly share code, notes, and snippets.

@paulrohrbeck
Created March 7, 2014 00:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulrohrbeck/9402881 to your computer and use it in GitHub Desktop.
Save paulrohrbeck/9402881 to your computer and use it in GitHub Desktop.
Adobe CQ/AEM: Add style selector for text component. To be added in .content.xml under /etc/designs/...abc.../
<basepage jcr:primaryType="nt:unstructured">
<mainParagraph
jcr:lastModified="{Date}2014-01-17T17:44:04.712-08:00"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
components="[group:General,group:Columns,group:Form]">
<section jcr:primaryType="nt:unstructured"/>
<text jcr:primaryType="nt:unstructured">
<cq:styles jcr:primaryType="nt:unstructured">
<columns
jcr:primaryType="nt:unstructured"
title="Columns">
<no-columns text="No" value="" jcr:primaryType="nt:unstructured" />
<two-columns text="2 Columns" jcr:primaryType="nt:unstructured" />
</columns>
</cq:styles>
</text>
</mainParagraph>
<headerParagraph
jcr:lastModified="{Date}2014-01-17T17:44:04.712-08:00"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
components="[group:General,group:Columns]">
<section jcr:primaryType="nt:unstructured"/>
</headerParagraph>
<footerParagraph
jcr:lastModified="{Date}2014-01-17T17:44:04.712-08:00"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
components="[group:General,group:Columns]">
<section jcr:primaryType="nt:unstructured"/>
</footerParagraph>
</basepage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment