Skip to main content
ashish_kumarm48
Level 2
Jan 25, 2017 9:50 AM UTC
Solved

Create Nodes with Custom name

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)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jan 25, 2017 3:34 PM UTC

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. 

3 replies

Feike_Visser1
Adobe Employee
Adobe Employee
Jan 25, 2017 10:24 AM UTC

Not on sure, what do you have this requirement?

Translate
ashish_kumarm48
Level 2
Jan 25, 2017 1:05 PM UTC

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

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Jan 25, 2017 3:34 PM UTC

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. 

Translate