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

kennyhank
kennyhank
Offline

Badges

Badges
17

Accepted Solutions

Accepted Solutions
1

Likes Received

Likes Received
17

Posts

Posts
36

Discussions

Discussions
5

Questions

Questions
31

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by kennyhank
Customize the badges you want to showcase on your profile
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node. - Adobe Experience Manager 06-09-2017
The reason is because on this mixed component (Text&Image) I have 3 scenarios:1- Only text wich behaviour is the same as Text component.2- Only image wich behaviour is the same as Image component.3- Having both text and image on the same component.So basically is more easily for author having these both components in only editable one component, and very useful, and the most important is a client requirement

Views

1.4K

Likes

0

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node. - Adobe Experience Manager 06-09-2017
I have Text, Image and Text&Image components, I'm including assetshare on Image and Text&Image, not on Text, text component is just text, nothing to share there.I always use templates on my HTL code when I have to call more than one .html file on the same component, here I'm including components for that reason I'm using:text&image.html.........HTL Text&Image component code here........more HTL Text&Image component code here--------->image.html.........HTL Image component code here........more H...

Views

1.4K

Like

1

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node. - Adobe Experience Manager 06-09-2017
I have a Text and Image components, and I create a new one wich is a mixed of Text&Image component, everyone has its own behaviour. On the other hand I have another component called assetsharing wich I include as part of any component with assets capable to share, for instance I include this component on the last tab of Image and Text&Image components's dialog. I'll never used my assetsharing component as a separate component, I always use this component as part of other depending of the use of ...

Views

1.4K

Like

1

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node. - Adobe Experience Manager 06-09-2017
I used the annotations to my class as well:@Model(adaptables = SlingHttpServletRequest.class)public class AssetSharing { //ATTRIBUTES - GENERAL //ATTRIBUTES - DIALOG PROPERTIES public AssetSharing(SlingHttpServletRequest request) { .... //code here this.wcmmode = (WCMMode.fromRequest(request) != WCMMode.DISABLED) && (WCMMode.fromRequest(request) != WCMMode.PREVIEW); .... // more code here }that is why I got already the request, but how I said before when I try to fetch the wcmmode, I always rece...

Views

1.4K

Like

1

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node. - Adobe Experience Manager 06-09-2017
You are right, but on this particular case I prefer create an small component with its html, dialog, and Java backend, and I can include my component as part of any other component because is a good way to reuse my code, for instance:

Views

1.4K

Like

1

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node. - Adobe Experience Manager 06-09-2017
I have a component for social share, this component doesn't work by itself, but I include it to other components like Image and Videoplayer for instance because is similar for both, I reuse its dialog by including on the last tab of the dialogs of the other components and forming its own html depending of the options that author used.

Views

1.4K

Like

1

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node. - Adobe Experience Manager 06-09-2017
Hi all thanks for your thoughts, I agree with last comment maybe my problem is on the architecture. I have a component that I passed its html to another different component (B), but my B component is composed for text & image components, and I passed the param wcmmode=disabled because I don't want to make editable those components as separate.Part of the htl code:With this I make my entire component "textℑ" editable as one, and not 2 separate components. But the problem is with another component...

Views

1.5K

Like

1

Replies

0
Retrieving the 'SlingHttpServletRequest request' from a parent node. - Adobe Experience Manager 05-09-2017
Hi Community!For some reasons I need to retrieve the 'SlingHttpServletRequest request' from a parent node and I'm not be able to do it, I have already the request from the actual node but I'm passing on HTL an wcmmode='disabled' fixed value, this is why I'm going to need the parent request, sample code here: Resource resource = request.getResource(); Resource parent = resource.getParent(); SlingHttpServletRequest requestParent = parent.adaptTo(SlingHttpServletRequest.class);This is how I'm tryin...

Views

4.9K

Like

1

Replies

21
Re: How deactivate templates without modifying the users permissions. - Adobe Experience Manager 20-04-2017
Yes the users have the privileges to use templates, this is why I want to deactivate one specific template without made any changes to the user permissions.

Views

698

Likes

0

Replies

0
Re: How deactivate templates without modifying the users permissions. - Adobe Experience Manager 18-04-2017
Sorry I forget mention that my templates were created on AEM 6.0, now I'm using 6.2, but answering your question, no, I didn't use the Template Editor to create those old templates.

Views

691

Likes

0

Replies

0