since ‎21-01-2019
‎10-12-2019
berni7473
Level 2
Displaying fields based on selection of dropdown inside a Multifield in Coralui 3 berni7473 - Adobe Experience Manager
Hi All,I'm trying to create a component which has a multifield. Inside this I have a dropdown, based on selection of a value in this I want to show/hide two textfields. Currently I'm working on AEM 6.4 version and I want the same to be done using Coral UI 3 dialog structure. As per the below dialog on selection of "Mail" value from the dropdown, I need to hide the "PreLink Text" and "PostLink Text" fields.Regards,BernadineArun Patidar​ smacdonald2008​
1160
Views
0
Likes
2
Answers and Comments
Null check for a value in Sightly in AEM 6.4 berni7473 - Adobe Experience Manager
Hi All,I have created a component which has a list value being returned from Java. Everytime I author the component the value obtained in the html is null. In the logs it gives a null pointer exception. The values in these fields are coming from tagging in AEM. How do I place a null check condition in the component? PFB the snippet of the code in sightly : Note: I have to add the condition for ${collist.getparentClass} and ${collist.getchildClass}Arun Patidar​ smacdonald2008​
1575
Views
0
Likes
1
Answers and Comments
Adding Columns(parsys) based on number field entries in AEM 6.4 berni7473 - Adobe Experience Manager
Hi All,I am trying to create a component which will add number of columns based on the number selected in the numberfield in dialog. For exm - If I add 3 in the number field it should then generate a layout consisting of three columns with three parsys. Currently I'm trying to read the number field value and add these values in a list in java. This is the snippet:if (null != columnProperties) {numberofcolumns = (Integer) columnProperties.get("numberofcolumns", 1); //number entered from the dialo...
3132
Views
0
Likes
3
Replies
Re: Adding multifields based on numberfield in AEM 6.4 berni7473 - Adobe Experience Manager
Hi Dushan,Thank you for the input, however I'm trying the restrict the addition of fields inside a multifield, so if you have any insights on that it would be helpful.Regards,Bernadine Soman
5162
Views
0
Likes
0
Replies
Re: Adding multifields based on numberfield in AEM 6.4 berni7473 - Adobe Experience Manager
Hi Arun,I tried the same solution but it did not work for the for the min max values. The listener does not work for me. Although I'm using AEM 6.4, do you think that this might be a factor here?Regards,Bernadine Soman
5162
Views
0
Likes
2
Replies
Adding multifields based on numberfield in AEM 6.4 berni7473 - Adobe Experience Manager
Hello Everyone,I am creating a component in which I need to add multifields based on the increment or decrement in the numberfield.For example in the above dialog - Suppose the author adds 3 in the numberfield, now he should be able to add only 3 sets of multifields in the dialog. That is he should be able to click on the "Add" button only 3 times and 3 sets of the field should be available. I am using Coral UI 3 for dialog creation.Can anyone please provide some insights for the same? I have se...
5689
Views
1
Like
6
Replies
Re: Blocking special characters in search berni7473 - Adobe Experience Cloud
Thanks Arun, I tried doing the same with regex expressions and it worked. Using the Pattern and Matcher , I achieved the result I wanted. The key challenge here, was that I was not able to seperate the query String into actual characters and special characters i.e. if I entered any string such as "Test$%$#&" the search would still happen, I wanted it to be blocked even before the string is encoded into a url. Finally the following worked for me: String searchTerm = Search.getQueryParameter(searc...
1724
Views
0
Likes
0
Answers
Re: Blocking special characters in search berni7473 - Adobe Experience Cloud
Thanks for the insight. The check which you are saying for the special characters, that is exactly what I'm wanting to do. This is the snippet I have in the jsp:String searchTerm = Search.getQueryParameter(search.getQueryString(),"q");pageContext.setAttribute("searchterm",StringUtils.isNotBlank(searchTerm) && !searchTerm.equals("*") ? URLDecoder.decode(searchTerm, "UTF-8") : "");Now here before it goes to the pageContext I need to add a check, which is where I am struggling. Is there any snippet...
1647
Views
0
Likes
0
Answers
Re: Blocking special characters in search berni7473 - Adobe Experience Cloud
I am already using the regex expression but then when I try any other string with special characters the search is still working.I want to block the search for special characters in the query term itself from aem level.
1648
Views
0
Likes
0
Answers
Re: Blocking special characters in search berni7473 - Adobe Experience Cloud
Not exactly, I want to block a few characters from the search. Suppose I have the query string as "text$#%file&*alert(1)", now when I search for this the special characters in the url are replaced by %22%32 or something like this because of the url decoder.I want this to be blocked.
1647
Views
0
Likes
0
Answers
Blocking special characters in search berni7473 - Adobe Experience Cloud
Hi ,I have created a search component which performs a fulltextsearch. I am able to perform search for a string however, if i search for a string with special characters the search is still working. I need to block the search from happening i.e. if a user does a search with any special characters, the result should be a "Page not found" or a "Could not find what you're looking for" message.The search component is a created taking reference from the searchpromote component in aem and it is in JSP...
3872
Views
0
Likes
8
Answers and Comments
Implementing Pagination for a Component using sightly in aem 6.4 berni7473 - Adobe Experience Manager
Hi,I want to add the pagination feature in aem 6.4 in my sightly code. I want to perform iteration for the page numbers.<First1 (current) 2Can I iterate through the pages dynamically in my code? I want the page numbers "1" and "2" to be dynamic here.Regards,Bernismacdonald2008​ Jörg Hoh​
1450
Views
0
Likes
1
Answers and Comments
Iterating through resources and creating a json for a page in AEM 6.4 berni7473 - Adobe Experience Manager
Hi,I am trying to iterate through the resources inside a page. In my code I am able to get the resource but while iterating i only managed to get the last component inside the page. I need to get each resource and its properties so that I can write a json for each resource. The snippet which i have written is as follows:protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException {response.setContentType("application/json"); response.setCharacterEnc...
1635
Views
0
Likes
1
Answers and Comments
Re: Extending/Overlaying a Content Fragment Component into your custom component in AEM 6.4 berni7473 - Adobe Experience Manager
Thank you Arun for your response. I checked and created my custom cf component.
1218
Views
1
Like
0
Answers
Re: Extending/Overlaying a Content Fragment Component into your custom component in AEM 6.4 berni7473 - Adobe Experience Manager
So is it possible to extend the Content Fragment component inside my custom project? Since the dialog structure creates data attributes rather in separate nodes?
1206
Views
0
Likes
0
Answers
Extending/Overlaying a Content Fragment Component into your custom component in AEM 6.4 berni7473 - Adobe Experience Manager
Hello Everyone,Is it possible to extend or overlay the content fragment component in AEM 6.4, inside a custom project? I have tried both extending and overlaying the content fragment component from core but the dialogs in touch-ui do not seem to work.I noticed that the structure of the cq:dialog for the content fragment component in core is also a bit different too. There is granite:data node inside the structure which has the above properties. To my understanding I guess these are related to Co...
1929
Views
1
Like
4
Answers and Comments
Re: Customize the content fragment model elements in AEM 6.4 berni7473 - Adobe Experience Manager
Yeah, Please do let me know if there is any approach available for this. I have been facing this issue for a long time now.Regards,Bernadine Soman
5945
Views
0
Likes
3
Replies
Re: Customize the content fragment model elements in AEM 6.4 berni7473 - Adobe Experience Manager
Hi Arun,The above solution is only valid if we use a normal content fragment. Here you can add your own elements, however what I have created is a Custom Content Fragment Model (and as mentioned above in the two diagrams with only two fields) for my Content Fragment. So when I select that I do not get any of these options in the content fragment dialog.Regards,Bernadine Soman
5945
Views
0
Likes
0
Replies
Customize the content fragment model elements in AEM 6.4 berni7473 - Adobe Experience Manager
Hi,I have created a content fragment model, and using this i created a content fragment in AEM 6.4. In the content fragment I can select only one element from the dropdown in the content fragment component. However, I want to select multiple elements :The Model consists of two fields - A single text field where one can enter any text , and a content reference field which is a path browser so one can enter the path.I want both the Text and the Image to be dispalyed on the page not just one elemen...
6690
Views
0
Likes
7
Replies
Re: Modifying the json structure of a content fragment berni7473 - Adobe Experience Manager
Hi,I am exporting the json of a content fragment in aem 6.4. On doing a model.json on the page it only gives me some data - not the data related to what I have authored inside the content fragment. Since I needed to do this inside a specific project, I tried extending the content fragment component from the core package. However on doing so I noticed that dialog for the content fragment component dialog doesn't seem to work. So now I am not able to author anything inside the content fragment as ...
1514
Views
0
Likes
0
Answers
Re: Modifying the json structure of a content fragment berni7473 - Adobe Experience Manager
Thank you everyone for your replies. However, the problem here is the content fragment which I will be creating are going act as replacements for some components such as header and footer. Another point here which I want to bring to your attention here is that I tried adding these existing components inside the fragment grid of the content fragment. Obviously I was not able to get the json of these components, but I just want to understand why i'm not able to get the complete json.Regards,Bernad...
1522
Views
0
Likes
0
Answers
Modifying the json structure of a content fragment berni7473 - Adobe Experience Manager
Hi I have created a content fragment and I am exporting the json of this content fragment on a page by adding model.json in the url (e.g. https://localhost/content/we-retail/us/en/experience/testpage.model.json). This gives me a complete json of the content fragment on the page - { "title": "testpage", "lastModifiedDate": 1550740163226, "templateName": "content-page", "cssClassNames": "page basicpage", "language": "en-US", ":itemsOrder": [ "root" ], ":items": { "root": { "columnCount": 12, "grid...
3859
Views
0
Likes
8
Answers and Comments
Default Sling Script Error berni7473 - Adobe Experience Manager
Hi everyone,I am doing an update for a component in which I need to add a new class in the backend. On adding the class and making the required updates in the pom.xml files I am still getting the following error :org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: No use provider could resolve identifier com.aem.community.core.demoClassI also tried changing the name of the class and adding the packages in the pom. I even tried changing the artifactid from uppercase to lowercase h...
5589
Views
0
Likes
3
Replies
Re: Need to read/export json of experience fragment berni7473 - Adobe Experience Manager
Developing components from scratch would be a bit difficult since all components are already existing. However, I'll try this method once and let you know if it worked.Thanks.
2139
Views
0
Likes
0
Answers
Re: Need to read/export json of experience fragment berni7473 - Adobe Experience Manager
Yes, I have checked the AEM Content Services. However that is for content fragment and i'm trying to implement the same thing using an experience fragment. I tried referring the the following links but did not find anything useful:Adobe Experience Manager Help | Using Content Fragments and Content Services in AEM Adobe Experience Manager Help | Getting Started with AEM Content Services
2141
Views
0
Likes
0
Answers
Need to read/export json of experience fragment berni7473 - Adobe Experience Manager
@@@Hi,I am creating an experience fragment which would have two or three components. I need to get the json for components inside this experience fragment. Currently I am able to get the json details of the experience fragment but not the components inside them.This json data needs to be passed as a service to a webapi. A service needs to be created which will get this json data in a service and via that service data will be sent to the webapi.Can anyone please provide some pointers for the same...
5302
Views
2
Likes
7
Answers and Comments