This content has been marked as final.
Show 2 replies
-
1. Re: Urgent: how to get the theme name using in current page?
hassan_iitg Jun 5, 2006 10:18 AM (in response to ericmacau)i am also interested in this. Please do post if you are able to figure this out.
Thanx,
Hassan -
2. Re: Urgent: how to get the theme name using in current page?
hassan_iitg Jun 5, 2006 4:06 PM (in response to ericmacau)Here is the solution
PortalTheme theme =(PortalTheme)renderRequest.getAttribute("THEME"); out.write ("current theme App id is " + theme.getAppID() + " Theme Name is " + theme.getName() + "<br></br>"); // You can also get all the link tags in the portal-themes.xml List links = theme.getLinks(); for(Iterator it = links.iterator(); it.hasNext();){ ThemeLink cssLink = (ThemeLink) it.next(); String sCSSHref = cssLink.getLink().toString(); out.write(sCSSHref); }
Thanx Hassan.