First of all I used CMSAdmin tool to create a folder at the same level of the
"default" folder and uploaded my file jsp(or html) in that folder. Now the path
is MyFolder/MyFile.
Then, in the portlet descriptor of my portal instance (portlet.xml), when I
declare my CMSPortlet, I set the index page as follow:
<portlet-name>MyCMSPortlet</portlet-name>
<portlet-class>org.jboss.portal.core.portlet.cms.CMSPortlet</portlet-class>
<init-param>
Default path to index page.
indexpage
/MyDir/MyFile
</init-param>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-info>
CMS
</portlet-info>
note that is necessary that the name of the init-param must be "indexpage"
because the CMSPortlet (I discovered it in the source file) check for an
attribute with this name.
I hope this help you.
Paolo.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919984#3919984
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919984
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user