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

Keerthana_H_N
Community profile Keerthana_H_N Level 2
Job title here
Location here
7 BADGES
Level 2

Level 2

Learn more
Joined the community 20-02-2020 2:42:53 AM
Online
Top badges earned by Keerthana_H_N
Customize the badges you want to showcase on your profile
How can I access the user login details in publish?
Avatar
Ignite 5
Level 2
Keerthana_H_N
Level 2

Likes

4 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Boost 3
Boost 1
Ignite 3
Give Back 3
View profile
Keerthana_H_N
- Adobe Experience Manager
How can I get get user details in publish intance? @SlingObjectprivate SlingHttpServletRequest request;​private User user = null;​/*** Initial method to get the user id*/@PostConstructpublic void initModel() throws ParseException {ResourceResolver resourceResolver = this.request.getResourceResolver();final Session adminSession = resourceResolver.adaptTo(Session.class);final UserManager userManager = resourceResolver.adaptTo(UserManager.class);try {user = (User) userManager.getAuthorizable(adminS...

Views

73

Likes

0

Replies

5
Re: How to Copy AEM node one place to another location?
Avatar
Ignite 5
Level 2
Keerthana_H_N
Level 2

Likes

4 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Boost 3
Boost 1
Ignite 3
Give Back 3
View profile
Keerthana_H_N
- Adobe Experience Manager
Hi @Dipti_Chauhan I want to replace the current node with updated properties if the node is already there.

Views

120

Like

1

Replies

0
How to Copy AEM node one place to another location?
Avatar
Ignite 5
Level 2
Keerthana_H_N
Level 2

Likes

4 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Boost 3
Boost 1
Ignite 3
Give Back 3
View profile
Keerthana_H_N
- Adobe Experience Manager
I need to copy an AEM JCR node source to destination. The following code is working but if that node already exists in the destination I'm getting an error: String sourcePath="/content/dam/assets/content";String destinationPath="/content/dam/Marketing/content";Session session = resourceResolver.adaptTo(Session.class);Workspace workspace = session.getWorkspace();workspace.copy(sourcePath, destinationPath);session.logout(); But the problem is that the content node already exists inside the folder ...

Views

158

Likes

0

Replies

4
How to set value of the element in content fragment
Avatar
Ignite 5
Level 2
Keerthana_H_N
Level 2

Likes

4 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Boost 3
Boost 1
Ignite 3
Give Back 3
View profile
Keerthana_H_N
- Adobe Experience Manager
Hi, I have created the content fragment using the servlet and I need to set the value of the content fragment elements values? I need to set the string value which I'm getting from resource. Thank you

Views

53

Likes

0

Replies

1
Re: How can we create Content fragment via code
Avatar
Ignite 5
Level 2
Keerthana_H_N
Level 2

Likes

4 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Boost 3
Boost 1
Ignite 3
Give Back 3
View profile
Keerthana_H_N
- Adobe Experience Manager
@Vijayalakshmi_S Thank you, it worked. How can I set value of the element?

Views

143

Like

1

Replies

1
Re: How can we create Content fragment via code
Avatar
Ignite 5
Level 2
Keerthana_H_N
Level 2

Likes

4 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Boost 3
Boost 1
Ignite 3
Give Back 3
View profile
Keerthana_H_N
- Adobe Experience Manager
@Bhuwan_B tried using both way templateRes.adaptTo(FragmentTemplate.class).createFragment(parentFolder, "custom-name", "Custom Title"); fragmentManager.create(parent, template, “my-test-fragment”, “My Test Fragment”);The code runs fine but there is no content fragment created in the DAM.

Views

175

Like

1

Replies

0
Re: How can we create Content fragment via code
Avatar
Ignite 5
Level 2
Keerthana_H_N
Level 2

Likes

4 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Boost 3
Boost 1
Ignite 3
Give Back 3
View profile
Keerthana_H_N
- Adobe Experience Manager
@Asutosh_Jena_ Yeah I tried but getting exception saying invalid template. "/conf/test-cf-model/settings/dam/cfm/models/test-cookie-fragment-model"this is my template and using the resource of this path to create fragment.

Views

190

Like

1

Replies

0
How can we create Content fragment via code
Avatar
Ignite 5
Level 2
Keerthana_H_N
Level 2

Likes

4 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Boost 3
Boost 1
Ignite 3
Give Back 3
View profile
Keerthana_H_N
- Adobe Experience Manager
The requirement to create content fragment via Java code (Utility or servlet). How can I achieve this? https://aemdeveloper.wordpress.com/2017/08/22/create-access-the-content-fragment-programmatically/ referred this link to create the CF but there's no output. Please let me know if there's any method to achieve this.

Views

200

Likes

0

Replies

7
Creating Dropdown in multifield using Sightly
Avatar
Ignite 5
Level 2
Keerthana_H_N
Level 2

Likes

4 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Ignite 5
Boost 3
Boost 1
Ignite 3
Give Back 3
View profile
Keerthana_H_N
- Adobe Experience Manager
Hi, I'm trying create a drop using multifield values. Does anyone know the sightly code for this?

Views

211

Likes

0

Replies

3
Likes from