Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #77

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
285 changes: 133 additions & 152 deletions README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,34 @@
/* start counter for every text area */
.paragraphcounter {
counter-reset: cf-rte-par-counter;
counter-set: cf-rte-par-counter -1;
}

/* increment counter every par block and add counter */
.paragraphcounter > h1:before,
.paragraphcounter > h2:before,
.paragraphcounter > h3:before,
.paragraphcounter > p:before {

counter-increment: cf-rte-par-counter;
content: "#" counter(cf-rte-par-counter) "";
float: right;
color: black;
background-color: lightgray;
width: 40px;
text-align: center;
border-radius: 100%;
vertical-align: middle;
opacity: .5;
counter-increment: cf-rte-par-counter;
content: "#" counter(cf-rte-par-counter) "";
float: right;
color: black;
background-color: lightgray;
width: 40px;
text-align: center;
border-radius: 100%;
vertical-align: middle;
opacity: .5;

}

/* highlight every par block */
.paragraphcounter > h1:before,
.paragraphcounter > h2:before,
.paragraphcounter > h3:before,
.paragraphcounter > p {

border: 1px dashed rgba(0, 0, 0, .5);
border: 1px dashed rgba(0, 0, 0, .5);

}
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
variant="valuelist"
path="/content/cq:tags/${(empty tenant.id and empty tenantId) ? 'aemdesign' : (empty tenant.id ? tenantId : tenant.id )}/component-dialog/components/details/generic-details/templates"/>
</variantFieldsTemplate>
<variantFieldsTemplateHint
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/hidden"
name="./variantFieldsTemplate@TypeHint"
value="String[]"/>

<variantFields
jcr:primaryType="nt:unstructured"
Expand All @@ -118,6 +123,11 @@
path="/content/cq:tags/${(empty tenant.id and empty tenantId) ? 'aemdesign' : (empty tenant.id ? tenantId : tenant.id )}/component-dialog/components/details/generic-details/fields"/>
</field>
</variantFields>
<variantFieldsHint
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/hidden"
name="./variantFields@TypeHint"
value="String[]"/>
</items>
</variantCustomConfig>
</items>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<?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" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
<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:actions="[text:Generic Details,edit,-,copymove,-,delete,insert]"
cq:layout="editbar"
cq:dialogMode="floating">
<cq:formParameters
jcr:primaryType="nt:unstructured"
sling:resourceType="aemdesign/components/details/generic-details"
variantFields="[title]"
variantFieldsTemplate="[simple]"
variant="custom"/>
<cq:dropTargets jcr:primaryType="nt:unstructured">
<contentfragment
jcr:primaryType="cq:DropTargetConfig"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template data-sly-template.field="${@ componentProperties}">
<sly data-sly-test="${componentProperties.badgeCustom || (( componentProperties.legacyVariant || 'default' in componentProperties.variant) ? !componentProperties.showToolbar : true)}">
<sly data-sly-test="${componentProperties.badgeCustom || 'custom' in componentProperties.variant || componentProperties.legacyBadgeSelected || (( componentProperties.legacyVariant || 'default' in componentProperties.variant) ? !componentProperties.showToolbar : true)}">
<sly data-sly-resource="${'./toolbar' @ resourceType='aemdesign/components/layout/navbar', decorationTagName='div'}"></sly>
</sly>
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Content Fragment Page Generation
============

Content Fragment Page Generation

# Overview

Generate Pages for Content Fragments

## Information
* **Vendor**: [AEM.Design](http://aem.design)
* **Version**: v2
* **Compatibility**: AEM 6.4+
* **Status**: production-ready
* **Local Code**: [/apps/aemdesign/components/content/text/v2/text](/crx/de/#/apps/aemdesign/components/workflow/contentfragmentpagegen)
* **Source**: [github/aem-design](https://github.com/aem-design/aemdesign-aem-common/tree/master/src/main/content/jcr_root/apps/aemdesign/components/workflow/contentfragmentpagegen)
* **Readme**: [/apps/aemdesign/components/content/text/v2/text](/mnt/overlay/wcm/core/content/sites/components/details.html/apps/aemdesign/components/workflow/contentfragmentpagegen)

# Authoring

Add this component to your workflow to generate pages from content fragments.





<p></p>
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,20 @@ public class CommonUtil {
public static final String COMPONENT_DETAILS_SUFFIX = "-details";
public static final String PATH_DEFAULT_CONTENT = "article/par";
public static final String PATH_DEFAULT_CONTENT_BASIC = "root/responsivegrid";
public static final String PATH_DEFAULT_CONTENT_BASIC_CORE = "root/container";
public static final String PATH_DEFAULT_CONTENT_ROOT_ARTICLE = "root/article/par";
public static final String DEFAULT_PAR_NAME = "par";
public static final String DEFAULT_ROOT_NAME = "root";

public static final String[] DEFAULT_LIST_DETAILS_SUFFIX = new String[]{COMPONENT_DETAILS_SUFFIX}; //NOSONAR used by models
//TODO: need to make this an OSGi Config same as aemdesign.components.media.image
public static final String[] DEFAULT_LIST_PAGE_CONTENT = new String[]{
DEFAULT_PAR_NAME,
PATH_DEFAULT_CONTENT_BASIC_CORE, // vanila core on sdk
DEFAULT_ROOT_NAME,
DEFAULT_PAR_NAME, //legacy
PATH_DEFAULT_CONTENT,
PATH_DEFAULT_CONTENT_BASIC,
PATH_DEFAULT_CONTENT_ROOT_ARTICLE
PATH_DEFAULT_CONTENT_ROOT_ARTICLE //semantic
}; //NOSONAR used by models


Expand Down