Embeded the portlet and Add_JSP in custom_theme

As per for the beginners when we are creating some project we want our project should be appeared in custom_theme, as for this so  much R&D we need but if we try this code it will work

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 in our

project. 


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....smiley

Author

ABHISHEK-KUMAR

Liferay Top Contributor Q4 2015 Award Winner

http://abhishek2371.blogspot.in/