RE: LR 7.1 Using fragments

gordon daniels, modified 7 Years ago. Liferay Master Posts: 797 Join Date: 8/24/08 Recent Posts

I know fragments can be used on 'content pages'. But can they be used on 'widget pages'. I don't see how to include a fragment on a widget page. For that matter, I don't see how to include widgets on a ' content page'. Here's hoping someone can shed some light on this for me.

thanks

thumbnail
Denis Signoretto, modified 7 Years ago. Expert Posts: 375 Join Date: 4/21/09 Recent Posts

Hi Gordon,

 

AFAIK fragments can include widgets only if the widget has been developed to be included in a fragment. Standing at what is reported here, all portlet developed as (OSGI) components that declare the property "com.liferay.fragment.entry.processor.portlet.alias=app-name" can be included in a fragment with the tag "lfr-widget-app-name".

At the moment I'm writing, on Liferay 7.1 CE GA1, these are the widgets/portlets that can be included in a fragment:

 

<lfr-widget-polls></lfr-widget-polls>
<lfr-widget-related-assets></lfr-widget-related-assets>
<lfr-widget-site-map></lfr-widget-site-map>
<lfr-widget-tags-nav></lfr-widget-tags-nav>
<lfr-widget-tag-cloud></lfr-widget-tag-cloud>
<lfr-widget-categories-nav></lfr-widget-categories-nav>
<lfr-widget-media-gallery></lfr-widget-media-gallery>
<lfr-widget-nav></lfr-widget-nav>
<lfr-widget-rss></lfr-widget-rss>
<lfr-widget-breadcrumb></lfr-widget-breadcrumb>
<lfr-widget-iframe></lfr-widget-iframe>
<lfr-widget-asset-list></lfr-widget-asset-list>
<lfr-widget-web-content></lfr-widget-web-content>
<lfr-widget-form></lfr-widget-form>
<lfr-widget-dynamic-data-list></lfr-widget-dynamic-data-list>

 

HTH,

Denis

gordon daniels, modified 7 Years ago. Liferay Master Posts: 797 Join Date: 8/24/08 Recent Posts

Denis: thanks for the reply! That helped me alot.

thanks again