Customizing My Sites portlet in Liferay -


i want customize sites portlet (which out of box portlet) in liferay using ext. how do this? how source code sites portlet?

following files structure my sites portlet in portal source:

views:

\portal-web\docroot\html\portlet\my_sites\       - view.jsp     - site_action.jsp 

action:

\portal-impl\src\com\liferay\portlet\myplaces\action\viewaction.java 

the initial view being rendered view.jsp of group_search.jsp (search field) , site_action.jsp (actions button). ensure action file, open \portal-web\docroot\web-inf\struts-config.xml, copy of struts_action value set parameter render / action urls appearing on view.jsp (lets /my_sites/view , /sites_admin/page), find following mappings in struts-config.xml

/my_sites/view

<action path="/my_sites/view" type="com.liferay.portlet.myplaces.action.viewaction">     <forward name="portlet.my_sites.view" path="portlet.my_sites.view" /> </action> 

/sites_admin/page

<action path="/sites_admin/page" type="com.liferay.portlet.myplaces.action.viewaction" /> 

if aren't familiar extension environment, can refer setup guide , development guide

now, extend these files, should have following structure in ext:

views:

\ext\testext\docroot\web-inf\ext-web\docroot\html\portlet\my_sites\     - view.jsp     - site_action.jsp 

action:

\ext\testext\docroot\web-inf\ext-impl\src\com\liferay\portlet\myplaces\action\viewaction.java 

note: testext name of extension folder.

i hope, sufficient information start , you.

i enlighten on more thing, i.e.

as suggested daniele baggio, if requirement can fulfilled changes in struts action , jsps, should go hook implementation.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -