Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay 7.2 Edit Blog Entry Html
I have Lifeary 7.2
I found the way to edit the template of List of Blogs Entries but i don't find the way to edit the html or template of a single entry.
How can i do that?
Looking at the Widget Templates that are available in global scope, it seems that an individual blog entry is not templated. Thus, I'd expect the markup to be created in a JSP in the blog portlet.
Unless I've missed something, your options are, in order of my personal preferences:
- Add some specific CSS to your theme to modify appearance of a blog article
- Add some additional markup and/or JS to the page, e.g. from a PortletFilter, that modifies either the appearance or the DOM to what you like
- Change the markup generated by the blogs portlet from a Portlet filter (buffer the output, modify it, then deliver the modified version)
- Override the JSP that generates the output
and, well, CSS changes in your theme can be applied to all the other solutions as well.
I have to edit html.
Filters can allow to edit a string.
I think to override the JSP file because i have a better control to the DOM.
Thank you
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™