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

khalidMomin
khalidMomin
Offline

Badges

Badges
19

Accepted Solutions

Accepted Solutions
4

Likes

Likes
20

Posts

Posts
78

Discussions

Discussions
12

Questions

Questions
66

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by khalidMomin
Customize the badges you want to showcase on your profile
Re: adaptTo() in sightly
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Thanks Feike,Any code snippet or sample?

Views

1.1K

Likes

0

Replies

0
adaptTo() in sightly
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi All,is there a way to adapt a resource to custom model class in sightly?I have a custom model and i want to adapt a resource to it in sightly html code not in java.Thanks,Khalid

Views

2.8K

Likes

3

Replies

7
Re: Access model class outside component HTML
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi Pooja,You didnt get my question.the question was about looping over child components of parsys.i wanted to know a method by which i can loop over child components i.e. all sample components dropped in parsys.Anyways, i found another solution.Thanks a lot for your time.

Views

2.9K

Likes

0

Replies

0
Re: Access model class outside component HTML
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi Pooja,yes, they both are same component and i want to display one property called "data" as follows:${properties['parsys/sample/data'] @context='unsafe'}This works fine for sample component, but in future author may drag and drop as many sample component as they want. and the name will be different for every new sample component dropped under parsys.So how can i get the values looping over parsys node?I can do that via sling models, i was wondering if we have any such method in sightly or any...

Views

2.9K

Likes

0

Replies

2
Access model class outside component HTML
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi All,Can we access a model class parameters outside the component HTML.for example,i want to access sampleModel.class parameters written for sample.html from sample2.html or from parent HTML having sample component as a child.If no, what will be the workaround to access dialog properties of sample component from its parent component?Following is the structure and i want to access all properties of all sample components:parent component -jcr:content -parsys -sample -sample_6733100011Note: prope...

Views

3.1K

Likes

0

Replies

4
Re: sightly template to populate model class data
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Something more complex with this:Though earlier answer was right. Just an extension of the same.What if we have many or more than 1 custom_tag components available in iparsys?

Views

819

Likes

0

Replies

0
Re: sightly template to populate model class data
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
It worked.Thanks a lot for your valuable support, time and patience.

Views

836

Like

1

Replies

0
Re: sightly template to populate model class data
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
here "tagcontent" is a property for custom_tag component.I tried all the approaches, but getting null.${properties['jcr:content/iparsys/custom_tag'].tagcontent}${properties['jcr:content/iparsys/custom_tag\tagcontent']}Still no luck.

Views

821

Likes

0

Replies

0
Re: sightly template to populate model class data
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
So you mean:${properties[jcr:content/iparsys/custom_tag].tagcontent}" ??

Views

824

Likes

0

Replies

0
Re: sightly template to populate model class data
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
hey Fieke,Thanks for reference.I am facing an issue here, i am passing the values of model class from base page to component template.Since, the properties are not available in base page i am getting null.Is there a way i can access child parsys properties from parent page.Base page jcr:content parsys tagComponent <-- i want to read this component properties in basePage.html

Views

821

Likes

0

Replies

0
Re: sightly template to populate model class data
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
I passed model into template.How do i use model parameters in template so that when i call it externally, i get the model data?Any reference to the same will be appreciated.

Views

820

Likes

0

Replies

0
Re: sightly template to populate model class data
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Kunal,Please refer the code i sent now.I am initializing the the tagModel in component html. retrieving value from it and creating template.I tried initializing tagModel object in base page as well, but the values were null.

Views

826

Likes

0

Replies

0
Re: sightly template to populate model class data
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
file: custom_tag_template.html ${customTagModel.tagcontent} <-- this works fine, i can see tagcontent on page ${customTagModel.tagcontent} <--so I made it a template file: basePage.htmlcalling template values using data-sly-call, since template is present other file data-sly-use is used <--this is null

Views

819

Likes

0

Replies

0
sightly template to populate model class data
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi All,I have a requirement, where i will take input from author in via component and display it in section of the page. e.g. any script tag.I am trying to use . Though, i am getting all values when i am using simple text. But when i am trying to access model class variables, i am getting null or no data. This is working fine: (written in component html and accessed in another html via data-sly-call) some random text I want this, and its not working: (same as above) ${tagModel.tagContent}Inf...

Views

4.3K

Likes

2

Replies

18
Event listener to redirect
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi All,I have a requirement where i am reading the URL of the page from a node property and displaying the page using the URL in node property.Also, i have a web-service which can modify the node property on the fly.Now my problem is, when the URL on the node property gets modified, i have to redirect the current window to new/modified URL.I think, this can be done using AEM event listener. But i don't know how to do it.Please help.

Views

320

Likes

0

Replies

2
face recognition using DAM
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi All,I want to create a user authentication based on facial recognition. I want to use my laptop camera to capture user face and using pre-loaded images in DAM i want to do facial recognition, i want to verify if the user exists or not by matching captured image and images present in DAM. Based on this verification, i want to pass true with user-id if the image matches any image in DAM, to calling function and allow user to login.Please provide any help/pointers as i don't find any useful reso...

Views

586

Likes

0

Replies

2
Re: Need help on MSM architectural designs
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Can i get a sample design or architecture?

Views

389

Likes

0

Replies

0
Need help on MSM architectural designs
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi All,I am going to work on a project where we have to develop a website having multi-lingual and multi-national sub-sites suing AEM.There are around 44 such sub-sites. Since, its my first ever project where i will be working as a solution architect. I want help with architectural guidelines for this project. Please share pointers to any such available architectures for reference, various server configurations required, designs, best practices or any case study will be highly appreciated.Thanks...

Views

2.2K

Likes

0

Replies

11
Encoding request parameters to "UTF-8"
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
HI All,I want to encode all request data as well as form data in the request to UTF-8 charachters.We are using AEM forms and some service integration parameters are also included in request .I tried encoding using "Apache Sling Request Parameter Handling" configurations as well, but characters like '>','<', and semi-colon are not getting converted to UTF-8.I want to encode everything in request to UTF-8.Please provide any pointer or help.

Views

382

Likes

0

Replies

0
XSS for slingRequest object
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi All,I need help on a priority issue we are facing.We are using Adobe forms for capturing user details. After user fills the form and we send the form for processing in a slingRequest object to our handler servlet. We are facing a cross-site scripting issue where the request is being intercepted and modified before we send it to our handler servlet. We are applying XSS-protection for all attributed in the request, but the problem is, the request is not reaching the handler servlet. Is there a ...

Views

345

Likes

0

Replies

1
script injection through URL: how to resolve?
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
I am facing an issue with an hacker, who is injecting scripts through URL. For ex:localhost:4502/content/mypage/homepage.html?alert("XSS");this is showing an alert with "XSS".I want to disable all the special character. I tried adding filter in dispatcher, modifying .htaccess of my webserver and writing java-script handler, but none worked for me.I am using some query parameters in my application, so cant block all query params.Please help to stop this script injection.

Views

1.7K

Likes

0

Replies

3
Re: Create arabic version of a site using MSM
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi kautuk,Thanks for reply, i find the CSS part really useful.But i am stuck at a point, and that's , i am not getting Arabic/Arabic+ in translation drop down as attached in above thread.i created a root node with arabic language (as attached).While translating, if i select "English+" or "Chinese+", its translating to these languages properly.Since i cant see the option of Arabic/Arabic+, i am not able to translate it in Arabic.

Views

813

Likes

0

Replies

0
Re: Create arabic version of a site using MSM
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi Illia,Thanks for prompt reply.please see the screenshot, i am not getting Arabic/Arabic+ translation listed.Thus, i am not able to perform the translation.Also, i would like to know, how can i handle 'RTL' issue.For e.g. If i have top navigation menu, which floats left for english language, how will i make it to float right in Arabic version.

Views

813

Likes

0

Replies

1
Create arabic version of a site using MSM
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi All,I am trying to create a Arabic version of geometrixx-outdoors demo site as a part of POC for my new project.But, i dont see Arabic language translation available while creating language copy. Though other languages are visible.How do i see Arabic or Arabic+ in the drop down for language copy.Few translations are available for page titles in translator for e.g. Company,Community,Toolbar,Blog etc.How do i go about it.Any pointers will be helpful.

Views

1.0K

Likes

0

Replies

5
AEM-SAP connector
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager Forms
Hi All,Has anyone integrated AEM with SAP?Do adobe provide any connector to integrate SAP CRM with AEM?need informations on the same.

Views

626

Likes

0

Replies

1
creating users using accountmanager.createAccount()
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
I want to create users with profile via coding.i would like to know how can we use accountmanager?other aprroaches are also welcome. i tried user.createUser() as well, but profile node is not getting created.i want to create users with profiles in AEM 5.6.1.

Views

324

Likes

0

Replies

2
username using client context
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Cloud
How to get the logged in username using client context. I tried following code, but got admin as output, where as i want output as user logged in the geometrixx website. Session session = resourceResolver.adaptTo(Session.class); String userName=session.getUserID();i guess this can be done using client context. Can anyone help me out getting username from client context.Thanks in advance.

Views

400

Likes

0

Replies

2
Re: username using client context
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
Hi smacdonald2008,Thanks for responding. my ultimate aim is to get logged in user name and i have used the above said API only.i have 2 users one is logged in to CQ5 and another logged in to geometrixx site.i want geometrixx site user.can u share any code snippet by which i can get logged in username.?

Views

241

Likes

0

Replies

0
username using client context
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Manager
How to get the logged in username using client context. I tried following code, but got admin as output, where as i want output as user logged in the geometrixx website. Session session = resourceResolver.adaptTo(Session.class); String userName=session.getUserID();i guess this can be done using client context. Can anyone help me out getting username from client context.Thanks in advance.

Views

451

Likes

0

Replies

4
Re: Product list based on recently viewed product
Avatar
Ignite 30
Level 4
khalidMomin
Level 4

Likes

20 likes

Total Posts

78 posts

Correct reply

4 solutions
Top badges earned
Ignite 30
Ignite 20
Give Back 25
Ignite 10
Ignite 5
View profile
khalidMomin
- Adobe Experience Cloud
thanks, Sham.I have done it through recently viewed and recommended products.

Views

341

Likes

0

Replies

0