Highlighted

Timeline event

Avatar

Avatar

shaheenas113483

Avatar

shaheenas113483

shaheenas113483

21-03-2019

How can I create my own event and use it instead of using Timeline Event in the code of comment.jsp in the path: /libs/dam/gui/coral/components/admin/timeline/events/comment/comment.jsp

Replies

Highlighted

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

21-03-2019

Could you please explain your use case? What kind of event do you want to create?

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

21-03-2019

Is this API what you are referring to?

"The Adobe AEM Quickstart and Web Application."

Highlighted

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

21-03-2019

Hi,

What do you mean by event?

You can want to create event topic and properties, if yes check Apache Felix - Apache Felix Event Admin

acs-aem-samples/SampleOsgiEventEmitter.java at master · Adobe-Consulting-Services/acs-aem-samples · ...

Highlighted

Avatar

Avatar

shaheenas113483

Avatar

shaheenas113483

shaheenas113483

21-03-2019

I checked the Comment.jsp file, which gets rendered in Timeline. It uses the Timeline event. I wanted to use the code of Comment.jsp somewhere else outside the Timeline, so how can I make it work without Timeline event. This is why I asked about other events.

The path for Comment.jsp is:

/libs/dam/gui/coral/components/admin/timeline/events/comment/comment.jsp

and the code snippet is as such:

TimelineEvent event = (TimelineEvent) request.getAttribute("cq.gui.common.admin.timeline.event");

You will get a better idea if you check that code.

Highlighted

Avatar

Avatar

shaheenas113483

Avatar

shaheenas113483

shaheenas113483

21-03-2019

Yes, you are right. After I checked the code in Comment.jsp file, I checked this API to understand Timeline event better. Is there any other way to get the event? Since, I am not working with Timeline rail, thus I wont get the timeline event. But I want to use the the same functionality of Comment which we see in Timeline.

Highlighted

Avatar

Avatar

shaheenas113483

Avatar

shaheenas113483

shaheenas113483

21-03-2019

Well, I want to use the functionality of Comment, which we see in Timeline rail. But, I don't want to use the comment functionality in the Timeline. So, I wont be able to fetch the timeline event, which is being used in the code of Comment. Is there any other way to make it work?

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

22-03-2019

I am not aware of any other way.