Fórum

display changes for asset publisher

sandeep tripathi, modificado 12 Anos atrás.

display changes for asset publisher

Regular Member Postagens: 100 Data de Entrada: 19/10/11 Postagens Recentes
hi
i need to display the article into asset publisher as in shown in image1 i was able to show the article into as image2

i had modify the view_dynamic_list_asset.jsp this help me put the content into four layer but still not able to get upper part

if (displayStyle.equals("fourarticles")){
if ((assetEntryIndex== 2) && (assetEntryIndex== 4)){%>
<div class="fltLeft">
<div class="articlesubbox">
<%}else{%>
<div class="articlesubbox">
<%}
AssetEntry assetEntry = (AssetEntry)results.get(assetEntryIndex);
String className = PortalUtil.getClassName(assetEntry.getClassNameId());
long classPK = assetEntry.getClassPK();
AssetRendererFactory assetRendererFactory = AssetRendererFactoryRegistryUtil.getAssetRendererFactoryByClassName(className);
if (assetRendererFactory == null) {
continue;
}

AssetRenderer assetRenderer = assetRendererFactory.getAssetRenderer(classPK);
String title = assetEntry.getTitle();
boolean show = true;
boolean print = false;
request.setAttribute("view.jsp-assetEntryIndex", new Integer(assetEntryIndex));
request.setAttribute("view.jsp-assetEntry", assetEntry);
request.setAttribute("view.jsp-assetRendererFactory", assetRendererFactory);
request.setAttribute("view.jsp-assetRenderer", assetRenderer);
request.setAttribute("view.jsp-title", title);
request.setAttribute("view.jsp-show", new Boolean(show));
request.setAttribute("view.jsp-print", new Boolean(print));
try {
%>
<%@ include file="/html/portlet/asset_publisher/view_display.jspf"%>
<%
}catch (Exception e) {
_log.error(e.getMessage());
}
if ((assetEntryIndex== 2) && (assetEntryIndex== 4)){%>
</div>
<%}

if any body have any suggestion then please help .
regards
sandeep