Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Policy icon not showing; unable to allow/disallow components

Avatar

Level 2

To better understand this, please check the minute 01:24 from the video in this article: https://experienceleague.adobe.com/docs/experience-manager-learn/sites/page-authoring/template-edito...   

See how there is an Policy icon right besides the "+" icon. The problem is that it doesn't appear for any of my containers. I tried with the basic wknd project and this one too: https://github.com/adobe/aem-guides-wknd 

It doesn't appear for any of my projects. If I try to edit any template of the basic project, it should also show a default container showing a list of components, where I can also allow/disallow, like in this image. 

But it doesn't appear for me.  Example of how it shows here: [IMAGE]

What I tried to fix it:  

1) Completely deleted all projects, reinstalled AEM SDK and deleted the "crx-quickstart" folder before restarting the server;  
 
2) Installed multiple new projects, let me show you the code I used:  

 

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D archetypeVersion=39 \ 
-D appTitle="WKND Sites Project" \
-D appId="wknd" \
-D groupId="com.adobe.aem.guides" \
-D artifactId="aem-guides-wknd" \
-D package="com.adobe.aem.guides.wknd" \
-D version="0.0.1-SNAPSHOT" \
-D aemVersion="6.5.7"  

(
I also tried with archetypes 37 and 43, and with aem versions 6.5.0 and "cloud")  

I also tried using the pre-made wknd site (https://github.com/adobe/aem-guides-wknd)  
I downloaded the classic.zip file, uploaded in CRX package manager, installed and built through crx package manager.  



But even then it's not showing the policy icon or the container from the screenshot.  
 
Current java version: 

java 20.0.2 2023-07-18
Java(TM) SE Runtime Environment (build 20.0.2+9-78)
Java HotSpot(TM) 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing) 

AEM sdk I used:  

aem-sdk-2023.8.13099.20230810T160553Z-230702 

What else can I try? Thank you in advance



1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @edo_wjp,

You need to switch from "Initial Content" to "Structure" mode.

Screenshot 2023-08-22 at 8.01.46 PM.png

View solution in original post

5 Replies

Avatar

Community Advisor

Hi @edo_wjp,

Either the Java 8 or 11 JDK is required. Kindly refer to the provided link to find the Java JDK versions that are supported. 

https://experienceleague.adobe.com/docs/experience-manager-65/deploying/introduction/technical-requi...

 

Avatar

Level 2

Hi there, thank you for the response. 

I had version 11 before, I changed just for testing purposes, and now I downgraded to version 11 again.  

openjdk 11.0.20 2023-07-18
OpenJDK Runtime Environment (build 11.0.20+8-post-Ubuntu-1ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.20+8-post-Ubuntu-1ubuntu120.04, mixed mode, sharing) 
 
javac 11.0.20 

Apache Maven 3.6.3

Maven home: /usr/share/maven
Java version: 11.0.20, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-79-generic", arch: "amd64", family: "unix"



After downgrading, I restarted the server and started another project from scratch using this code:  

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D archetypeVersion=43 \
-D appTitle="WKND Sites Project" \
-D appId="wknd" \
-D groupId="com.adobe.aem.guides" \
-D artifactId="aem-guides-wknd" \
-D package="com.adobe.aem.guides.wknd" \
-D version="0.0.1-SNAPSHOT" \
-D aemVersion="6.5.7" 

But, sadly, the problem persists. 


Avatar

Correct answer by
Community Advisor

Hi @edo_wjp,

You need to switch from "Initial Content" to "Structure" mode.

Screenshot 2023-08-22 at 8.01.46 PM.png

Avatar

Administrator

@edo_wjp We hope you found the AEM community valuable. We anticipate your return as either a learner or a contributor. The community benefits from SMEs like you. Please ask your AEM peers to join and contribute. Happy AEM learning!



Kautuk Sahni