RE: Source code for default widget like asset publisher, web content etc.

Jamie Sammons, modified 8 Months ago. New Member Post: 1 Join Date: 2/5/25 Recent Posts

Hi everyone. How to find source code for these widgets? I wanna change markup and add new html, css structure with like, comments which are already implemented out of the box in Liferay. How to reuse this code in widget template? Like and tags.

I use last version Liferay 7.4

7.4
thumbnail
Olaf Kock, modified 8 Months ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

I'd recommend to rather use the Collection Display fragment and compose the content out of other regular fragments. This way you have all the HTML/CSS at your fingertip and don't need to deal with freemarker-template-debugging.

AFAIK AssetPublisher is even deprecated, so you'd have to do this with one of the next updates anyway.