/** * Appends the subtitle to the current subtitle of the page in the request. * * @param subtitle the subtitle to append to the current subtitle * @param request the servlet request for the page */ public static void addPageSubtitle( String subtitle, HttpServletRequest request) { getPortal().addPageSubtitle(subtitle, 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.addPageSubtitle(journalArticle.getTitle(locale), request); _portal.addPageDescription( journalArticle.getDescription(locale), request);