Create Nodes with Custom name | Community
Skip to main content
ashish_kumarm48
Level 2
January 25, 2017
Solved

Create Nodes with Custom name

  • January 25, 2017
  • 3 replies
  • 1263 views

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.
Best answer by smacdonald2008

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
January 25, 2017

Not on sure, what do you have this requirement?

ashish_kumarm48
Level 2
January 25, 2017

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

smacdonald2008
smacdonald2008Accepted solution
Level 10
January 25, 2017

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.