From 910cd97027e272104a681c847bc36025812b264e Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Wed, 22 May 2024 17:11:36 +0200 Subject: [PATCH] use json-jcr for code snippets alternatively in FileVault XML and JSON --- pom.xml | 2 +- src/site/markdown/usage.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 03e52f7..1ce1707 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ io.wcm io.wcm.parent_toplevel - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/src/site/markdown/usage.md b/src/site/markdown/usage.md index 3fad87d..85d5f64 100644 --- a/src/site/markdown/usage.md +++ b/src/site/markdown/usage.md @@ -14,7 +14,7 @@ To use the paragraph system in your sightly template: To define which components are allowed in your paragraph system you create a node `wcmio:parsysConfig` in your page component (similar to nodes like `cq:dialog` and `cq:editConfig`). Example: -```json +```json-jcr "wcmio:parsysConfig": { "jcr:primaryType": "nt:unstructured", "paths": { @@ -97,7 +97,7 @@ You can set the following property in the component node of the paragraph system Example: -``` +```json-jcr { "jcr:primaryType": "cq:Component", "sling:resourceSuperType": "wcm-io/wcm/parsys/components/parsys", @@ -114,7 +114,7 @@ Notes: * The properties **wcmio:parsysParagraphCss** and **wcmio:parsysParagraphElement** do not work properly when inserting or editing components without configuring a REFRESH_PARENT event on the `afterinsert` and `afteredit` events for the child components. It is recommended to use `cq:htmlTag` definition on the parsys child components instead - example: -``` +```json-jcr { "jcr:primaryType": "cq:Component", "jcr:title": "My Component",