Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Create Nodes with Custom name

Avatar

Level 2

I have a parsys, and i am dropping same component on it multiple times, by default it is getting some random name , like text_273462, text_236452386. But my need is to get the name as text_1,text_2,text_3 and so on. Any help??(image for reference)

1 Accepted Solution

Avatar

Correct answer by
Level 10

The system names the nodes. I am not sure you can override the node name AEM gives to a component when an author drops a component onto a page. 

View solution in original post

3 Replies

Avatar

Employee

Not on sure, what do you have this requirement?

Avatar

Level 2

It is a video component and author is allowed to drag and drop it on the same parsys multiple times , and in our component html we have a video id <video id="left-video-teaser-1">, this 1 needs to be increased everytime if a new video is added, 

lets suppose if there are 2 video componnet , so for 1 it should be this <video id="left-video-teaser-1"> and for second it should be <video id="left-video-teaser-2">

hope this helps

Avatar

Correct answer by
Level 10

The system names the nodes. I am not sure you can override the node name AEM gives to a component when an author drops a component onto a page.