/** * Appends the description to the current meta description of the page in * the request. * * @param description the description to append to the current meta * description * @param request the servlet request for the page */ public static void addPageDescription( String description, HttpServletRequest request) { getPortal().addPageDescription(description, request); }
private String _getDisplayPageURL( AssetEntry assetEntry, String mainPath, Map<String, Object> requestContext) throws PortalException { AssetDisplayContributor assetDisplayContributor = _assetDisplayContributorTracker.getAssetDisplayContributor( assetEntry.getClassName()); if (assetDisplayContributor == null) { throw new PortalException(); } HttpServletRequest request = (HttpServletRequest)requestContext.get( "request"); request.setAttribute( AssetDisplayWebKeys.ASSET_DISPLAY_CONTRIBUTOR, assetDisplayContributor); request.setAttribute(AssetDisplayWebKeys.ASSET_ENTRY, assetEntry); Locale locale = _portal.getLocale(request); _portal.addPageSubtitle(assetEntry.getTitle(locale), request); _portal.addPageDescription(assetEntry.getDescription(locale), request); Layout layout = _getAssetDisplayPageEntryLayout(assetEntry); return _portal.getLayoutActualURL(layout, mainPath); }
_portal.addPageDescription( journalArticle.getDescription(locale), request);