Message Boards

Display Web Content Grid Thumb Nail View in Liferay 7.1

Mohamed Imran, modified 5 Years ago.

Display Web Content Grid Thumb Nail View in Liferay 7.1

New Member Posts: 10 Join Date: 2/1/17 Recent Posts
I have been working to display web content in Asset publisher in grid thumb nail view and my ADT code is. My question is how to display web content

in grid thumbnail view

<#assign liferay_ui = taglibLiferayHash["/META-INF/liferay-ui.tld"] />


<div class="row" style="padding-left:35px;">
<#list entries as entry>

    <div class="col-md-4">
    
        <#assign assetRenderer = entry.getAssetRenderer()/>
        
            <@liferay_ui["asset-display"]
                assetEntry=entry
                assetRenderer=assetRenderer
                showExtraInfo=false />

    </div>

    </#list>
    
</div>
thumbnail
Christoph Rabel, modified 5 Years ago.

RE: Display Web Content Grid Thumb Nail View in Liferay 7.1

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
Maybe this article helps you:
https://community.liferay.com/blogs/-/blogs/divide-and-conquer-rendering-structured-web-content-with-the-asset-publisher

The tag you use also has a "template" parameter, so you should be able to do the same.

Tipp:
Disable the automatic key generation for templates, then you get nice, readable keys:
https://devcon.dccs.at/disable-automatic-key-generation-details
thumbnail
Andrew Jardine, modified 5 Years ago.

RE: Display Web Content Grid Thumb Nail View in Liferay 7.1

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hey Chris! .. thanks for sharing that tip (https://devcon.dccs.at/disable-automatic-key-generation-details) -- I never knew you could do that! emoticon