RE: How to add custom layout to page fragments

Marcin Pawluk, modified 5 Years ago. New Member Posts: 16 Join Date: 1/22/20 Recent Posts
Hi. I would like to add custom layout to Page fragments section, but I cannot find any information how to do it. Is it possible in Liferay 7.2.1 and higher versions?
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
I don't think, you can (at least not easily).
It is probably possible to implement something like that (didn't try)  it in 7.3.3+, since you can add your own dropzones to fragments, but in 7.2 ...
Marcin Pawluk, modified 5 Years ago. New Member Posts: 16 Join Date: 1/22/20 Recent Posts
Thanks for reply. One more question. Do you know is it possible in 7.3.3+ to add custom CSS class to section/row? I see that in 7.2.1 - 7.3.2 versions  do not allow to do this.
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
No, I don't know. I don't think so. I agree, that would be useful.
I would try this:
Add a fragment with a div and your own styleclass and a dropzone inside and drop the section/row inside.
Since you are inside your own dropzone, you should be able to apply styles to the section/rows inside of your div.
Marcin Pawluk, modified 5 Years ago. New Member Posts: 16 Join Date: 1/22/20 Recent Posts
Ok, so it require to update from 7.2.x to the latest version. I will try on fresh instance to check this. Anyway thank you for responses emoticon