Tuesday, 17 November 2015

Embeded the portlet and jsp in custom theme

                


yeah i can tell u alot practise i got something that means alot time saving code ..

sometimes you want our jsp file or portlet should appeared in liferay _custom_theme.
according to this our portlet would call....

In portal_normal.vm if we use:- $theme.runtime("portletid");

In freemake and styled theme(portel_normal.ftl) we can use :-        
${theme.runtime("portletid", "", "")}

In theme we can use :- 
$theme.include($themeServletContext, "/NewFile.jsp")
note:-NewFile.jsp is location of a jsp file that we created by right click

Note:-PortletId refers in mine sql

if you are using lportal;
use this
use lportal;
show tables;
select * from portlet;
then lastly you will get the portlet war copy that and paste instead of portletid




                                     hope this helps you....


No comments:

Post a Comment