Skip to content

Commit

Permalink
Merge pull request #157 from Adobe-Consulting-Services/feature/generi…
Browse files Browse the repository at this point in the history
…c-text-image

adding generic text & image component (using dynamic RTE)
  • Loading branch information
justinedelson committed Mar 23, 2014
2 parents 81efb73 + 806d0ef commit 6aca54e
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:Component"
jcr:title="Generic Text &amp; Image"
sling:resourceSuperType="foundation/components/textimage"
allowedParents="[*/parsys]"
componentGroup="General"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="cq:EditConfig">
<cq:dropTargets jcr:primaryType="nt:unstructured">
<image
jcr:primaryType="cq:DropTargetConfig"
accept="[image/.*]"
groups="[media]"
propertyName="./image/fileReference">
<parameters
jcr:primaryType="nt:unstructured"
sling:resourceType="acs-commons/components/content/generic-text-image">
<image
jcr:primaryType="nt:unstructured"
sling:resourceType="foundation/components/image"
imageCrop=""
imageMap=""
imageRotate=""/>
</parameters>
</image>
</cq:dropTargets>
</jcr:root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:ClientLibraryFolder"
categories="[acs-commons.components]"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
textimage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* #%L
* ACS AEM Commons Package
* %%
* Copyright (C) 2014 Adobe
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
div.generic-text-image div.image {
float: left;
margin: 0 0.5em 0.5em 0;
}

div.generic-text-image.image_right div.image {
float: right;
margin: 0 0 0.5em 0.5em;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:TabPanel"
activeTab="{Long}0"
xtype="tabpanel">
<items jcr:primaryType="cq:WidgetCollection">
<tab1
jcr:primaryType="cq:Widget"
anchor="100%"
title="Text"
xtype="panel">
<items jcr:primaryType="cq:WidgetCollection">
<text
jcr:primaryType="cq:Widget"
script="rte.textimage.json?addElementQuery=div[class=&quot;text&quot;].jsp"
xtype="slingscriptinclude"/>
<richFlag
jcr:primaryType="cq:Widget"
ignoreData="{Boolean}true"
name="./textIsRich"
value="true"
xtype="hidden"/>
</items>
</tab1>
<tab2
jcr:primaryType="cq:Widget"
path="/libs/foundation/components/textimage/dialog/items/tab2.infinity.json"
xtype="cqinclude"/>
<tab3
jcr:primaryType="cq:Widget"
path="/libs/foundation/components/textimage/dialog/items/tab3.infinity.json"
xtype="cqinclude"/>
<tab4
jcr:primaryType="cq:Widget"
xtype="componentstyles"/>
</items>
</jcr:root>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6aca54e

Please sign in to comment.