Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

BrianKasingli
BrianKasingli
Online

Badges

Badges
37

Accepted Solutions

Accepted Solutions
262

Likes

Likes
761

Posts

Posts
679

Discussions

Discussions
33

Questions

Questions
645

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by BrianKasingli
Customize the badges you want to showcase on your profile
Re: Reuse customized RTE component in touch ui dialog
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
This might be too late as an answer, but I think current users will find this answer useful. Checkout this blog article that solves the problem.How to Write AEM Reusable Touch UI, Granite UI Configuration, https://sourcedcode.com/blog/aem/how-to-write-aem-reusable-touch-ui-granite-ui-configuration

Views

4

Like

1

Replies

0
Re: Value conversion using ValueMap vs standard java methods
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
I think your first example, the Adobe example looks alright.Adobe made the right choice to use @ScriptVariable ValueMap properties, because if you look at the logic to set startLevel, showHidden... it requires some logic. The logic as you can see, it will try to find and set the component's configuration, if that's not there, it will try to find and set the component's design dialogue configuration... if the component's design dialogue configuration does not exist, just set default values for st...

Views

29

Likes

3

Replies

1
Re: how do I hide the page delete button from a group of users?
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
1. visit the useradmin portal, http://localhost:4502/useradmin2. Create new user group, "cannot_delete_pages".3. add the group "authors" into this group. 4. edit the user group, cannot_delete_pages, to "disallow page deletion on /content5. press save.6. find the user group, and validate changes7. assign the group to a user, and test!

Views

19

Likes

3

Replies

0
Re: Conditional loading of clientlib
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
I have tried the syntax below, and it works as expected: I've tried:view-source:localhost:4502/content/sourcedcode/us/en/home.html?wcmmode=editview-source:localhost:4502/content/sourcedcode/us/en/home.html?wcmmode=designview-source:localhost:4502/content/sourcedcode/us/en/home.html?wcmmode=disabledI am able to see the output of the clientlib files as expected.Lastly, pleas validate if your clientlibs are actually registered properly. using this tool, http://localhost:4502/libs/granite/ui/conte...

Views

31

Likes

5

Replies

0
Re: How can I add Arabic to the User Preferences Language Selector
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
Using the Sling Resource Merger in AEM, overlay the /apps/granite/ui/content/userproperties/preferences/form/items/language/items/* node. Make sure you the overlayed language node as the sling:orderBefore property, so that the configuration is placed in the same area as the original configuration as expected: Making sure that the ar language options have been added under the language/items resource. I've created a package that you can install in your AEM local, give it a try. https://drive.googl...

Views

24

Likes

3

Replies

0
Re: rte remove tag p
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
removeSingleParagraphContainer will not work for touchUI rte, as this was a flagged used in the classicUI world.

Views

29

Like

1

Replies

1
Re: <p> in richtext in touch UI
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
Utilising the miscTools feature that the RTE provides, and along with the AEM Sling Model backend, removing the P tags can be done without a problem, Refer to this blog article for a full tutorial.https://sourcedcode.com/blog/aem/aem-richtext-remove-p-tag-removesingleparagraphcontainer-for-touch-...

Views

47

Like

1

Replies

0
Re: rte remove tag p
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
Utilising the miscTools feature that the RTE provides, and along with the AEM Sling Model backend, removing the P tags can be done without a problem, Refer to this blog article for a full tutorial.https://sourcedcode.com/blog/aem/aem-richtext-remove-p-tag-removesingleparagraphcontainer-for-touch-ui

Views

36

Like

1

Replies

3
Re: ACS Commons 3.19.0, Nested Multi-field, Checkbox State.
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
There is a problem with using the ACS Commons multi-field extension with the checkbox Granite UI Component. The solution here is to replace the checbox with the sleect Granite UI Component.The full solution can be found here, https://sourcedcode.com/blog/aem/acs-commons-multi-field-extension-acs-commons-nested-checkbox-is-not-working

Views

6

Likes

0

Replies

0
Re: How to get child page properties(image,title,description) using servlet in base path.
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
try https://www.albinsblog.com/2015/03/how-to-get-child-pages-of-root-page.html#.YdvEWf5KguU

Views

42

Like

1

Replies

0
Re: How to get child page properties(image,title,description) using servlet in base path.
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
@Krishna0427,I suggest you looking at the implementation of the servlet, and then extend it to expose more than just the title of each child page. There might be a POJO model Java class that you may need to extend, to output more properties as you mentioned.

Views

48

Like

1

Replies

2
Re: I am not able to delete any component in the AEM pages
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
Hi @Krishna0427,To help you, we need some logs, please can you go through this blog article and share with us the logs captured? This will allow us to quickly pinpoint what the problem is, https://sourcedcode.com/blog/aem/development/basic-steps-to-debug-an-error-in-aem

Views

63

Like

1

Replies

2
Re: Delegation Pattern for Sling Models doesn't populate all the properties from super class
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
@webdev24,your code looks correct, can you show with us your implementation of the sling model using the delegation pattern?Also make sure that your top level annotations are correct,@Model(adaptables = SlingHttpServletRequest.class, adapters = Teaser.class, resourceType = "myproject/components/myTeaser")

Views

39

Like

1

Replies

0
Re: Unit test with PDF files
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
When trying to use resources such as an PDF in your Java Unit tests, you should place the files in the resourced folder, https://www.baeldung.com/junit-src-test-resources-directory-path

Views

30

Like

1

Replies

0
Re: Jar file wont run on windows 10
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
@user00111 can you try running your terminal as an administrator? Maybe your terminal doesn't have permissions to create files in the current directory?

Views

38

Likes

2

Replies

0
Re: Where to insert third-party tags/scripts
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
In my response, I am assuming that your AEM pages is using the latest WCM Core Components V2 Page. Also the screenshot provided below is Google's documation on how to install GTM onto your page. https://developers.google.com/tag-platform/tag-manager/web Assuming that your AEM pages is using the latest WCM Core Components V2 Page, I will be placing the GTM code as high as in the head on the page as possible, so I will place the code in line:19 of my overlayed v2 Page Component, (head.html) https:...

Views

28

Like

1

Replies

0
Re: JSON data of a page using service
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
@Shaheena_Sheikh, if you are using the WCM Core Components V2 Page component, and your components are Sling Models, and are configured to export properties and values (based on some Java annoatations), please take a look at AEM's content exporter service; when you replace .html with .model.json, you will get a JSON representation of your entire page. https://experienceleague.adobe.com/docs/experience-manager-64/developing/components/json-exporter.html?lang=en

Views

43

Likes

2

Replies

0
Re: Applying colors to the text
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
Hi @SahrudayaB, if you have a prefined list, try using AEM's richtext editor plugin, styles. https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/configure-rich-text-editor-plug-ins.html?lang=en#text-stylesUsing the styles plugin will wrap your selected text with a tag, along with the cssClassName.

Views

55

Like

1

Replies

0
Re: AEM Unit Test for servlet
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
Try this ...import static org.mockito.Mockito.mock;import static org.mockito.Mockito.when;private SearchService searchService;@Testvoid doGetTest() throws IOException { searchService = mock(SearchService.class); when(searchService.get(any()).thenReturn(null); MockSlingHttpServletRequest request = context.request(); MockSlingHttpServletResponse response = context.response(); underTest.doGet(request, response); JsonObject jsonResponse = gson.fromJson(response.getOutputAsString(), JsonObject.class)...

Views

141

Like

1

Replies

2
Re: Unpublish parent page and Publish only Child page without publishing its parent page causing 404 in publishing instance.
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
@DharmaRaju,Yup, in order to serve child resources in the JCR, it needs to have a parent. What you can do is publish the parent page, set a 301 redirect, and also ensure that the page is setup with some robot rules, like noindex,nofollow.Goodluck, Brian.

Views

107

Likes

3

Replies

1
Re: Sling servlet with PUT method
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
@rgravisankar,You might not have your AEM configured to allow PUT methods, because all PUT methods are being filtered. From your local AEM, you need to configure the Apache Sling Referrer Filter.In OSGI configurations (http://localhost:4502/system/console/configMgr), locate “Apache Sling Referrer Filter”. Remove the PUT method from filters property.If you would like to test your Servlet via POSTMAN, you can follow this tutorial here -> https://sourcedcode.com/blog/aem/how-to-make-simple-http-pos...

Views

57

Likes

3

Replies

0
Re: I want to do a path check in Model Class
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
When you have a component with Sling Model backend, the currentPage object is returned to you via the context of where your component lives.Example AWhen the Sling Model calls currentPage, this is actually getting the current page of its contained page, in this case, it is the experience fragment itself. So when you are viewing the content fragment from a url like /content/experience-fragments/xf/test-1/master.html, this is expected. Example BWhen the Sling Model calls currentPage, this is actua...

Views

77

Like

1

Replies

0
Re: How to access Design Dialogue Properties in Sling Model.
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
@saurabh_kumar_02,From the Sling Model Injectors, have you tried?@ScriptVariable private Design currentDesign; @ScriptVariable private Designer designer; @ScriptVariable private Design resourceDesign;You can find the entire list of Sling Model Injectors from here, https://sourcedcode.com/blog/aem/aem-sling-model-injectors-annotations-reference-guide

Views

71

Like

1

Replies

0
Re: Is there a way to get the page properties of absolute parent using Sightly?
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
Yeah sure, you can use sling model to get the parent Page object, and then use the page API from sightly to obtain such values.I am using constructor injection as the example below as this strategy can also reduce memory consumption of your application, https://sourcedcode.com/blog/aem/aem-sling-model-field-injection-vs-constructor-injection-memory-consumptionSightly: ${mycomponent.properties['jcr:title']}Sling Model:import com.day.cq.wcm.api.Page; import org.apache.sling.api.resource.Resource; ...

Views

55

Likes

2

Replies

1
Re: Error while building the project
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
This is probably because your maven module have the wrong :groupIDartifactIDversion. Please look at other pom.xml's in the same project and determin which configurations are missing.

Views

54

Like

1

Replies

0
Re: I bet it's been asked before...can we hide component in desktop view only
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
This can be easily achived with front-end, CSS media queries. Lets give you an example below where am showing the entire .cmp-slideshow component on mobile and tablet, but hide it on desktop and bigger screens. You can change the pixel's below to match your layout's configurations. Also be sure to write the code in CSS, SASS or LESS, if possible. This allows reuse of your CSS variables across your project, so that you don't need to repeat yourself with hardcoded pixel values. @media (min-width:320px) { /* mobile: screen higher than 320px */ .cmp-slideshow { display: block; } } @media (min-width:641px) { /* tablet: screen higher than 641px */ .cmp-slideshow { display: block; } } @media (min-width:961px) { /* desktop: screen higher than 961px */ .cmp-slideshow { display: none; } }

Views

105

Like

1

Replies

1
Re: onclick function in ui.frontend
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
Assuming that you are using the latest aem-project-archtype, ensure that you have all your imports are identified from the main.ts or main.js file. The out of the box main.ts file looks like this; aem-project-archetype/main.ts at develop · adobe/aem-project-archetype · GitHub

Views

88

Likes

3

Replies

0
Re: Content fragment not visible after create folder in tools - general - config browser
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
Let us try to debug your environment. Tell me what you can find from the error logs.Follow the steps in this blog and let me know, https://sourcedcode.com/blog/aem/development/basic-steps-to-debug-an-error-in-aem

Views

78

Like

1

Replies

0
Re: Content fragment not visible after create folder in tools - general - config browser
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
What do you see in CRX/DE?Can you try to create a new configuration site under http://localhost:4502/libs/granite/configurations/content/view.html/conf?

Views

84

Like

1

Replies

2
Re: Create user package with correct access
Avatar
Coach
Community Advisor
BrianKasingli
Community Advisor

Likes

761 likes

Total Posts

679 posts

Correct reply

262 solutions
Top badges earned
Coach
Give back 600
Boost 500
Give Back 500
Give Back 400
View profile
BrianKasingli
- Adobe Experience Manager
@VaishnaS1,a pretty handy tool that I use for ACS is https://github.com/Netcentric/accesscontroltool

Views

72

Like

1

Replies

0