Skip to content

Commit 4cfb640

Browse files
Armaan Guptaci-build
authored andcommitted
added customfooterlibs for the dynamicOptions tests
1 parent 5d6e4c3 commit 4cfb640

File tree

3 files changed

+52
-1
lines changed
  • it
    • apps/src/main/content/jcr_root/apps/forms-core-components-it/components/page-dynamicoptionsv1
    • content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/dynamicenumenumnames/dynamicoptions

3 files changed

+52
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
~ Copyright 2024 Adobe
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
17+
<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"
18+
jcr:description="Page Component for v1 Dynamic Options Testing"
19+
jcr:primaryType="cq:Component"
20+
jcr:title="Page - Dynamic Options V1"
21+
sling:resourceSuperType="forms-components-examples/components/page"
22+
componentGroup=".hidden"/>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2+
~ Copyright 2024 Adobe
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/-->
16+
<sly data-sly-use.clientlib="core/wcm/components/commons/v1/templates/clientlib.html"
17+
data-sly-use.formclientlibmanager="com.adobe.cq.forms.core.components.models.form.FormClientLibManager">
18+
<sly data-sly-repeat="${formclientlibmanager.clientLibRefList}" data-sly-call="${clientlib.js @ categories=item, async=true}"/>
19+
</sly>
20+
<!-- Adding v1 component clientlibs for dynamic options test -->
21+
<!-- core.forms.components.radiobutton.v1.runtime and core.forms.components.checkboxgroup.v1.runtime are loaded explicitly -->
22+
<sly data-sly-use.clientlib="core/wcm/components/commons/v1/templates/clientlib.html">
23+
<sly data-sly-test="${!wcmmode.edit}" data-sly-call="${clientlib.js @ categories=['core.forms.components.runtime.base','core.forms.components.container.v2.runtime','core.forms.components.radiobutton.v1.runtime','core.forms.components.checkboxgroup.v1.runtime','core.forms.components.dropdown.v1.runtime','core.forms.components.button.v1.runtime'], async=false}"/>
24+
</sly>
25+
<sly data-sly-use.page="com.adobe.cq.wcm.core.components.models.Page">
26+
<sly data-sly-test="${page.data && page.dataLayerClientlibIncluded}" data-sly-call="${clientlib.js @ categories='core.forms.components.commons.v1.datalayer', async=true}"></sly>
27+
</sly>
28+
29+

it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/dynamicenumenumnames/dynamicoptions/.content.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
jcr:primaryType="cq:PageContent"
1212
jcr:title="dynamicOptions"
1313
sling:configRef="/conf/forms/core-components-it/samples/dynamicenumenumnames/dynamicoptions"
14-
sling:resourceType="core/fd/components/page/v2/page">
14+
sling:resourceType="forms-core-components-it/components/page-dynamicoptionsv1">
1515
<container1
1616
jcr:primaryType="nt:unstructured"
1717
sling:resourceType="core/wcm/components/container/v1/container"

0 commit comments

Comments
 (0)