since ‎05-08-2014
‎14-01-2021
snbaem
Level 4
Re: which would be a better option
Avatar

snbaem

snbaem
- Adobe Experience Manager
Hi, You can choose based on use case. If the property is something that is must have for most pages, you can have it available during page creation (and as required probably) so that its value is set when a page is created. The authors don't need to worry about opening dialog again. The equivalent to dialog submit validation might have to be found.If the property is an optional one, and needs to reside in a component dialog it can be chosen too, but its an add extra step for authors.

Views

57

Likes

2

Replies

0
Re: Getting "Invalid recursion selector value 'model' " e...
Avatar

snbaem

snbaem
- Adobe Experience Manager
Hi,I am unable to open the first link, but based on the error it could be that the resourceType resolution is failing? eg pointing to a page instead of page/jcr:content

Views

68

Like

1

Replies

0
Re: What is the approach to pull data from the java class...
Avatar

snbaem

snbaem
- Adobe Experience Manager
Hi,At the moment I can think of - Making an ajax call to servlet and doing the query over there (use service) and returning json object to populate the results through js. Each call will only get a set of results. On scroll the call is made again.The logic for query will be same as you would be doing already. Also suggest to use Sightly.

Views

78

Like

1

Replies

0
Re: Querybuiler is not giving correct result in publish i...
Avatar

snbaem

snbaem
- Adobe Experience Manager
Hi, Can you please provide the query that is used? I had noticed difference in results when looking with type cq:Page vs looking for jcr:content nodes of pages with given query criteria. May be this is similar issue:

Views

85

Like

1

Replies

1
Re: REST API - Map a Sling servlet to a path with a varia...
Avatar

snbaem

snbaem
- Adobe Experience Manager
Yes it is possible, Adding to given solutions, we can also try to use GET call query params / POST call form parameters or selectorsi.e. '/api/v1/articles.json?id=id123' or ‘/api/v1/articles.id123.json' I think by using selector or suffix we can use caching but at same time will need to manage cache clear set up as required when any data changes (or just have ttl set). See https://sling.apache.org/apidocs/sling5/org/apache/sling/api/SlingHttpServletRequest.html#getRequestParameterMap() and https...

Views

89

Likes

2

Replies

0
Re: Custom Versioning on Asset
Avatar

snbaem

snbaem
- Adobe Experience Manager
Hello, Can you please add some info/code snippet about the event listener code? I can think of a possibility that within the path that you have mentioned eg /content/dam/folder the change jcr:content of the particular asset would trigger the listener but if there is any property change in any other property within that or based on the type that is mentioned, it could still trigger event again. However, since you are looking to add a customVersion property for a change detected in publisher, you ...

Views

73

Like

1

Replies

0
Re: Find and Fix Broken Links in AEM
Avatar

snbaem

snbaem
- Adobe Experience Manager
Thanks, I should have stated about this. I thought this would have to be done in publishers and we will have to keep adding the new broken links and their replacements as we find them. Will think through this approach. Thanks.

Views

106

Likes

0

Replies

0
Find and Fix Broken Links in AEM
Avatar

snbaem

snbaem
- Adobe Experience Manager
Hello All, Probably bringing back one of the previously asked questions about finding and fixing broken links in AEM. There are some discussions and solutions mentioned eg using groovy script (can't use this currently) and link checker (https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/broken-link-scan/qaq-p/220892) and some discussions about disabling link checker because of possible performance issues. I tried using the linkchecker tool in AEM 6.5 and it was showing a c...

Views

159

Likes

0

Replies

4
Re: Creating a "polling service" in Java for AEM 6.5.6
Avatar

snbaem

snbaem
- Adobe Experience Manager
Hi, It seems Schedulers can do this, please check - https://medium.com/adobetech/aem-6-4-creating-a-scheduler-using-osgi-r6-annotations-4ad0b8c6fce7, it should work for AEM 6.5 too. This cron expression should work for you - 0 0/1 * 1/1 * ? * Hope this is what you were looking for. More - https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/org/apache/sling/commons/scheduler/Scheduler.htmlhttps://github.com/adobe/aem-project-archetype/blob/master/src/...

Views

102

Like

1

Replies

0
Re: What’s the overhead of getting a resource resolver in...
Avatar

snbaem

snbaem
- Adobe Experience Manager
Got you. Could there be a possibility of using user's request resolver if/where applicable? We don't have to close those. Getting curious too since using service resolvers at many places is common for me too 😄

Views

136

Likes

0

Replies

0
Re: Link rewrite service interfere with AEM forms
Avatar

snbaem

snbaem
- Adobe Experience Manager
Can you please check and add some logs when AEM forms is loaded? (I think) All requests will go through the custom class, may be debugging through this class when the forms page is loaded might give some insight Thanks

Views

85

Like

1

Replies

0
Re: What’s the overhead of getting a resource resolver in...
Avatar

snbaem

snbaem
- Adobe Experience Manager
Not sure if the desired use of the resourceresolver can be reduced, based on the required resource/property. You can use service resolvers and instantiate the resolver using try-with-resources (https://docs.oracle.com/javase/8/docs/technotes/guides/language/try-with-resources.html) With this, as long as the try bolck is done the resource resolver and associate sessions will close.Some links here - https://github.com/Adobe-Consulting-Services/acs-aem-samples/blob/master/core/src/main/java/com/ado...

Views

151

Like

1

Replies

2
Re: for local development, what is the difference between...
Avatar

snbaem

snbaem
- Adobe Experience Manager
Can you please take a look at this if it helps? https://www.youtube.com/watch?v=OhTA69mzDg0It is for AEM 6.2 it seems but it should be same for 6.5 non cloud set up.If you don't have wknd package, try - installing the content and apps packages from here - https://github.com/adobe/aem-guides-wknd/releases/tag/archetype-18.1 You can also try to set up your code repository by using https://github.com/adobe/aem-guides-wknd open this with vscode and run "mvn clean install -PautoInstallPackage" from t...

Views

101

Like

1

Replies

0
Re: package share keeps loading. Unable to download forms...
Avatar

snbaem

snbaem
- Adobe Experience Manager Forms
@Mayank_Gandhi - I reached out to spphelp@adobe.com and it seems my 'company has to be an Adobe SPP partner.' Thanks for your help.

Views

88

Likes

0

Replies

0
Re: package share keeps loading. Unable to download forms...
Avatar

snbaem

snbaem
- Adobe Experience Manager Forms
Thanks, Sent you a message. Not sure if I am eligible but sent you the info.

Views

110

Likes

0

Replies

0
Re: package share keeps loading. Unable to download forms...
Avatar

snbaem

snbaem
- Adobe Experience Manager Forms
@Mayank_Gandhi - Updated my comment

Views

124

Likes

0

Replies

0
Re: package share keeps loading. Unable to download forms...
Avatar

snbaem

snbaem
- Adobe Experience Manager Forms
I am getting redirected to https://downloads.experiencecloud.adobe.com/content/software-distribution/en/pswelcome.html?packagePath=/content/companies/public/adobe/packages/cq650/servicepack/fd/AEM-Forms-6.5.3.0-WIN.Onclick of 'Got it' I am redirected to Earlier I used to have access to package share downloads. Who can be contacted for this?

Views

139

Likes

0

Replies

0
Re: Fetching jcr:content properties
Avatar

snbaem

snbaem
- Adobe Experience Manager
Can you try something like this below?@Model(adaptables = { Resource.class, SlingHttpServletRequest.class }) public class Test { @ScriptVariable private Page currentPage; @PostConstruct public void init() { Resource currentPageRes = currentPage.adaptTo(Resource.class); Resource currentPageContentRes = currentPageRes.getChild(JcrConstants.JCR_CONTENT) ValueMap vm = currentPageContentRes.getValueMap(); String title = vm.get("jcr:title", String.class); Node curNode = this.request.getResource().adap...

Views

117

Like

1

Replies

0
Re: get component policy values in servlet
Avatar

snbaem

snbaem
- Adobe Experience Manager
Did you try the comment at https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/get-component-resource-in-a-servlet/qaq-p/387895 ? Seems like we are getting the node from the component i.e under /apps so try to see if the option of getting the page resource works or using a admin service resolver works

Views

145

Likes

0

Replies

0
Re: Get component resource in a servlet
Avatar

snbaem

snbaem
- Adobe Experience Manager
How is the call to servlet made? If there is an Ajax call via js, may be pass the resource path as a query param or form data making it a post call. That way we can doString path = request.getParameter("resourcePath").String path = request.getParameter("resourcePath"); Resource resource = request.getResourceResolver().resolve(path);Other than may be we can try String pagePath = request.getRequestURI(); Resource pageRes = request.getResourceResolver().resolve(pagePath); //Once we get page resourc...

Views

158

Like

1

Replies

0
Re: get component policy values in servlet
Avatar

snbaem

snbaem
- Adobe Experience Manager
What is the value of (String)request.getAttribute(Value.CONTENTPATH_ATTRIBUTE) when you debug? We can check if its a valid resource path. May be if it has selector or something, we can try resolver.resolve(pathobtained)Also check if the resolver has correct access, may be we need to use a admin user service resolver

Views

186

Like

1

Replies

2
Re: I am a AEM Content author, how can I be a AEM Develop...
Avatar

snbaem

snbaem
- Adobe Experience Manager
Few thoughts - Start with basic web development languages html, css, js, jquery and Java. More items to look into - Java content repositories, OSGi, SLING and AJAXAlso see - https://experienceleague.adobe.com/docs/experience-manager-64/developing/home.html?lang=en#devtools Try hands on component development and so on.And of course follow this 🙂 https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-manager-community There are probably some posts in the f...

Views

99

Like

1

Replies

0
Re: Can I use a selector to request a font?
Avatar

snbaem

snbaem
- Adobe Experience Manager
Noticed same that use of selector gives a 404. Can you see if using a query parameter ?v=123456 (/content/dam/static/fonts/icon-font/icon-font.1234.ttf and /content/dam/static/fonts/icon-font/icon-font.ttf.transform/original/icon-font.ttf?v=1605545369) works for you? Might need to check any node js capabilities to explore this

Views

81

Like

1

Replies

1
Re: Is there a way to clear data if you get Mixed Entries...
Avatar

snbaem

snbaem
- Adobe Experience Manager
It seems like this could be a use case for Content Fragments https://helpx.adobe.com/experience-manager/using/content-fragments.html in case where there are multiple partners sharing/using same content. By using CF the source remains same and the content can be used for different views for the desired partner.Once challenge you might face is I think, since your content might already reside in pages, chunking them out as CFs and designing different CF models might be a challenge. Other options is...

Views

93

Like

1

Replies

0
Re: Unable to edit page properties in editable templates
Avatar

snbaem

snbaem
- Adobe Experience Manager
Could you check the missing jcr:content node that the error is specifying?Also for the pages that are showing error can you describe the node structure?eg content/mysite/en/home/mypage/jcr:content/root/responsivegrid/mycomp Are we able to create a new page with the editable template? If so we can compare the node structure of the new page and migrated page

Views

118

Like

1

Replies

0
Re: I want to list details of all content fragment models...
Avatar

snbaem

snbaem
- Adobe Experience Manager
In the query can you try adding type=cq:PageContent ? What query did you use? Not expecting to see such traversing numbers under /conf. Otherwise try to use the java looping by getting the /conf resource and add checks in the loop to ignore unnecessary resources/nodes

Views

177

Likes

0

Replies

0
Re: I want to list details of all content fragment models...
Avatar

snbaem

snbaem
- Adobe Experience Manager
You could do a query like below. Adjust params as requiredpath=/conf/project/settings/dam/cfm/models property=sling:resourceType property.value=dam/cfm/models/console/components/data/entity/default or path=/conf/project/settings/dam/cfm/models property=cq:templateType property.value=/libs/settings/dam/cfm/model-types/fragment For looping can do something likeResource confProjectRes = readServiceResolver.resolve("/conf/myproject/settings/dam/cfm/models"); List list = new ArrayList<>(); //Once you...

Views

245

Like

1

Replies

7
Re: design mode in slightly
Avatar

snbaem

snbaem
- Adobe Experience Manager
@Sandeep6 Using below in java also gives "edit" for value of wcmMode when loaded the page in design mode. WCMMode wcmMode = WCMMode.fromRequest(slingRequest); Also needed to refresh the page for the model to be invoked.Something that worked was trying similar to below slingRequest.getCookie("cq-editor-layer.page").getValue()

Views

122

Like

1

Replies

0
Re: design mode in slightly
Avatar

snbaem

snbaem
- Adobe Experience Manager
Checked after seeing @Arun's comment. I am seeing the cookie state same as him. wcmmode is still edit when switched to Design mode. If clicked on preview and then design, then the wcmmode is preview which is still incorrect.

Views

157

Likes

0

Replies

0
Re: Avoid caching URLs with query paramters
Avatar

snbaem

snbaem
- Adobe Experience Manager
As mentioned above by @Manjunath_K there should be a setting in CDN. For example see - https://docs.microsoft.com/en-us/azure/cdn/cdn-query-stringJust putting out an after thought though 🙂 - If this is an external facing page and with considerably high number of products, the query parameters could be passed as post data form parameters via ajax call and allow caching of the calls and clear the cache using TTL in Dispatcher and CDN (or custom implementation to clear it) in case of any performan...

Views

85

Like

1

Replies

0