since ‎15-12-2017
10 hours ago
raj_mandalapu
MVP
Re: Creating a Newsletter Pop Up
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
@kushal_srivastava There is no OOTB functionality and this is more of a front end work, if you are familiar with jQuery then you can try the below approach.First, you need to find out the scroll position to find half of the page, for this, you can use the below sample codehttps://gist.github.com/JPustkuchen/d436d189d1840489454b982e90559999When the scroll reaches the middle of the page you need to call the function and that function should perform below step.The important thing is how are we auth...

Views

46

Likes

2

Replies

0
Re: Multi language supports in AEM
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
@JakeCham there are two types of content, static and dynamic.The dynamic content changes very frequently, generally the content author authors this content. we need to send this content for translation.The static content will not change very frequently and managed by the developer, just an example for this is placeholder text which you see in the search textbox. we cannot send this for translation because it is part of our code. We need to handle this via Java API or JS API. example: i18n.get("S...

Views

72

Like

1

Replies

0
Re: Adding secure attribute to cookie
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
@Shaheena_Sheikh ,if you don't make your cookie secure, then the cookie can be transmitted over the HTTP connection. so if you use HTTPS also, it is good practice to make your cookie secure.Check below code Cookie emailCookie = new Cookie("email", email);emailCookie.setPath("/");emailCookie.setMaxAge(31536000);emailCookie.setPath(";Path=/;HttpOnly;");;emailCookie.setSecure(true);response.addCookie(emailCookie); The cookies which you create using javascript also should make secure.

Views

61

Likes

2

Replies

0
Re: Adding a response header to specific resources
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
There are two approaches, using sling filters or adding this in the Apache layerIf you go with the filter you need to put proper conditions because the filter executes for every request. you need to put the proper pattern and also need to put condition only to execute images files something like .svg, png, etc.check below link, it sets header location headerhttp://www.coderss.in/aem-sling-filters-2/The other way is handling this at the apache level, refer to the below articles. I prefer to use A...

Views

56

Likes

2

Replies

0
Re: Issues that might arise due to having content disposi...
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
@Prem_IB the file which contains executable code is recommended to be downloaded, for example XML, SVG, txt, etc. let us take a simple use case, usually, we use a .svg file to render the images, but at the same time, you can also execute javascript within the SVG file. The problem with this is if you open the SVG within the browser then there is a chance that the attackers can run malicious code in the browser. In this case, you need to set the correct mime type that is image/svg+xml and also us...

Views

48

Like

1

Replies

0
Re: Use Api in JS
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
You need to use jquery selectors to get the value, check this article to get some idea https://medium.com/@theopendle/aem-custom-metadata-forms-for-assets-8c6597205f9d

Views

77

Likes

0

Replies

0
Re: Use Api in JS
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
The js use API execute at the server-side and we use this in components business logic, but I never tried this by adding category dam.gui.coral.metadataeditor, and in this case, based on my understanding you are calling use API in metadata validation, I think this will not work. you need to use JS to get the page path and other business logic.This is my understanding let's hear from other community members

Views

99

Likes

2

Replies

2
Re: Use Api in JS
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Did you try restarting this instance? I see other people are facing this issue. check below linkhttps://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/javascript-use-api-error-jdk-nashorn-internal-runtime/qaq-p/352704

Views

84

Likes

2

Replies

1
Re: GraphQL queries call using Sling servlet and models
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Hi Prince, the CIF helps use to make the development faster and it is an accelerator for your CIF project, when it comes to hitting graphql then you need to make a http request by passing inputs as json format. check below links https://amasty.com/blog/magento-2-api-updates-graphql/https://devdocs.magento.com/guides/v2.4/graphql/

Views

57

Likes

0

Replies

0
Re: GraphQL queries call using Sling servlet and models
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
@Prince_Shivhare the POC which I did an year back should help you ,check below article.http://www.coderss.in/read-magento-product-data-via-graphql-in-aem/

Views

84

Likes

2

Replies

2
Re: How to use one component dialog fields in page compon...
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
@sams16001423 I suggest you check this requirement with the business, authoring one image in the component and authoring another image in the page properties section because sometimes the business wants to author a separate image for the SEO purpose I mean here for social sharing. If that is the requirement then you need to give high priority to the image which is authored in the component. if the image is not authored in the component then get the image from the page properties.I feel og:tags a...

Views

65

Like

1

Replies

0
Re: Image Map feature getting stored in DAM asset metadata
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
The image map is always tightly coupled with an image. the coordinates which you specify in the map are part of the image. so where ever you use, you will see the same behavior, There are different ways to achieve this, but I want to highlight one thing hereWithout changing the Asset in the DAM, if you want to achieve this then it is going to be a complex requirement, first, you need to find out coordinates, if you are ready to find out coordinates without using AEM OOTB functionality, then you ...

Views

76

Like

1

Replies

1
Re: way to migrate versions along with assets from one AE...
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
I think the CRX2Oak tool which is used to migrated data between repositories can help with this.Version Store Options--copy-orphaned-versions: Skips copying orphaned versions. Parameters supported are: true, false and yyyy-mm-dd. Defaults to true.--copy-versions: Copies the version storage. Parameters: true, false, yyyy-mm-dd. Defaults to true.Check complete article:https://experienceleague.adobe.com/docs/experience-manager-64/deploying/upgrading/using-crx2oak.html?lang=en#introduction

Views

65

Like

1

Replies

0
Re: How to make Responsive image map in AEM
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
I don't see responsive image maps in AEM, but you can try with front end technologies, either using jQuery plugin's or node modules. https://www.madcapsoftware.com/blog/how-to-implement-responsive-image-maps-in-your-html5-outputs/https://codepen.io/PositionRelativ/pen/GmJOGo

Views

55

Like

1

Replies

0
Re: How to Delete DAM asset which is having specific prop...
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
I have taken groovy script code from the below article and modified according to your reuirement, but did not test this code, you need to test this in the local before running into production or QA.https://hashimkhan.in/aem-adobecq5-code-templates/groovy-script/ def predicates = [path: "/content/dam/geometrixx", type: "dam:Asset", "orderby.index": "true", "orderby.sort": "desc"]def query = createQuery(predicates)query.hitsPerPage = 500def result = query.resultprintln "${result.totalMatches} hits...

Views

96

Like

1

Replies

0
Re: How to get the current pagepath in service
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
You need to pass the current page object to the OSGi service.public void readProperties(Page currentPage) {ResourceResolver resolver = null;InheritanceValueMap map = new HierarchyNodeInheritanceValueMap(currentPage.getContentResource());}In the sling model call OSGI service @Inject @Source("osgi-services") TestService testService1; @PostConstruct public void activate(){ System.out.println("Inside Post Constructor Method"); testService1.readProperties(currentPage); }You can also pass page path as...

Views

158

Like

1

Replies

0
Re: How to access i18n strings in ReactJS Component
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Hi Rakesh, You are building a non-SPA project, so you can use the below node modules, the react itself has an i18n module, so you can try it for multilingual. you need to manage all translations in the JSON inside the public folder something like this /public/locales/en/translation.json Why I am proposing this, the translation's will not change very frequently, even if it changes also in AEM you need to get developer help to update and send it as JSON format, I feel instead of writing exporting ...

Views

84

Like

1

Replies

0
Re: Disabling dispatcher cache for some pages with HTTP h...
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
You can check the below approaches.Enable it for the page:If you want to disable cache for only a specific set of pages, then you can follow the below approach. in the page, properties put a checkbox, and on the selection of checkbox just load the below JSP file.Inside the .jsp file call no-cache code.Enable it for components:I recommend you to use sling dynamic include for the dynamic components, it gives a lot of advantages when we compare with other approaches. you don't need to set response ...

Views

134

Like

1

Replies

0
Re: Limiting uploads by size at folder level in AEM Assets
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Hi Harish, If you want to set up the size limit for the entire assets folder then you can refer to OOTB configuration,https://experienceleague.adobe.com/docs/experience-manager-64/assets/managing/managing-video-assets.html?lang=en#publishing-video-assets But, in your case it is not, you need to set it up at the folder level, you can try the below approaches. 1. workflow processCreate a separate workflow process step and in the execute method get the file size either by reading the metadata of th...

Views

105

Likes

2

Replies

0
Re: Permissions for publisher
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Hi Arun,Move, rename and edit operations come under modification of the page, so you must select modify checkbox. We don't have separate permissions only for the move and rename and separate permissions for only editing the content all come under Modify and create permission Please refer below article for the list of permissions:https://experienceleague.adobe.com/docs/experience-manager-64/administering/security/security.html?lang=en#managing-users-and-groups Usually, the publisher will publish ...

Views

84

Like

1

Replies

0
Re: AEM 6.5 <B> to <strong> in RTE
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Yes, you can do this using bulk editor also. I feel it is manual work will take time

Views

108

Likes

0

Replies

0
Re: Redirect Tool using etc/map
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
I can interpret it in two ways,I think, the ACS Redirect Manager helps us to manage redirects at the Apache level, but I see thatyou are expecting to store redirect configurations at etc/map level, seems like you want to configure internal redirects.If that is the case, then you need to write a custom logic1. You can reuse ACS redirect manager interface, check the below link for reference pagehttps://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/05e6e86fb69aff6afe7c3e4297b2be1d787e26...

Views

130

Like

1

Replies

0
Re: AEM Page versioning limit and convention
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
There is no option, we need to write custom logic as mentioned .

Views

139

Likes

0

Replies

0
Re: AEM Page versioning limit and convention
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
As per adobe documentation, the default behavior is Create versions of any page.The initial labels and version node names will be 1.0, 1.1, 1.2, and so forth.Restore the first version; i.e. 1.0.Create new versions again.The generated labels and node names will now be 1.0.0, 1.0.1, 1.0.2, etc.Refer https://docs.adobe.com/content/help/en/experience-manager-64/authoring/siteandpage/working-with-page...But, if you want to implement custom numbering, instead of 1.0 if you want 2.0 then the below appr...

Views

154

Likes

2

Replies

2
Re: User information in Publish Enviroment in AEM 6.5
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Hi Bikash, There is no out of box functionality to expose user details via rest API's, you need to write custom logic. Things you need to consider:You are trying to expose user details, as it is PII data, so you need to consider security, you must enable authentication.If security is not a concern then you can also create servlets and expose user details in JSON format.You can use watch below link to get some idea on exposing aem content via rest ap'shttps://www.youtube.com/watch?v=Bzdd298ii_YYo...

Views

116

Like

1

Replies

0
Re: AEM 6.5 <B> to <strong> in RTE
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
The content is already stored in the repository, so the only way you can fix this is by writing Groovy Script, the below script can help you to fix this Note: the code is not tested and it is self-understanding you can modify it if it does not work for you def search = ""def replace = ""def path = "/content"def property = 'jcr:description';def query = createSQL2Query(path, search , property)def result = query.execute()result.nodes.each{node ->def description = node.get(property)println descripti...

Views

151

Like

1

Replies

2
Re: Recover deleted files
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Hi @hamidk92094312 ,I can imagine or put design for this something like below.On clicking of the delete button, just move Asset to the Recycle Bin/Trash folderWhile moving add a property to the asset, the property name is something like source=""Set expiry time out for the deleted Asset to some amount, ex: 30daysIf content author select Asset to restore, move Asset to the original location by reading source property, we do not need to worry about versioning here, the latest version will get publ...

Views

616

Likes

0

Replies

0
Re: provide 301 redirect in aem 6.5
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Hi @sreenu539 Both solutions will work, choosing one on others depends on the requirements if you have hundreds of pages and want to give control to the content authors then selecting this at page property level will help, you do not need to request TechOps guys to add redirection for every page.If you what pages you want to redirect then I prefer rewrite URL's is the best solution.

Views

361

Likes

2

Replies

0
Re: Recover deleted files
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
Yes, Max, Thank you for the quick response, I partially agree with you and it is just my opinionWe know that most of the content authors are not technical people, they don't know how to take it from backup, they need to depend on either developers or admins, which I feel is waste of time and some times will effect on schedule.Educating content author may or may not solve this problem, there are chances to occur human errors what if by mistake delete the pages or assets before activating and want...

Views

722

Likes

0

Replies

0
Recover deleted files
Avatar

raj_mandalapu

MVP

raj_mandalapu
- Adobe Experience Manager
I have good experience on SharePoint and other CMS's, one thing I noticed when I compare AEM with others, the Recycle Bin is not available in AEM.If content authors accidentally delete any pages or assets, then it is difficult to get it back, sometimes they need to depend on developers to get it back and it is time consuming process, are there any plans to implement the same in future releases?

Views

748

Likes

2

Replies

5