You need to do 2 things
1) Log in using admin/admin and use the CMSAdmin portlet
Create a folder /MyFolder/MyPage

2)Now create an instance of CMSPortlet in the page that you want

Use the following steps:
a)In portlet.xml

  | <portlet>
  |       <portlet-name>MyCMSPortlet</portlet-name>
  |       
<portlet-class>org.jboss.portal.core.portlet.cms.CMSPortlet</portlet-class>
  |       <init-param>
  |          <description>Default path to index page.</description>
  |          <name>indexpage</name>
  |          <value>/MyFolder/MyFile</value>
  |       </init-param>
  |       <supports>
  |          <mime-type>text/html</mime-type>
  |          <portlet-mode>VIEW</portlet-mode>
  |       </supports>
  |       <portlet-info>
  |          <title>CMS</title>
  |       </portlet-info>
  | </portlet>  
  | 

b)In *-object.xml (corresponds to your portal name)
Place the instance of the portlet at the correct location



  | <deployments>
  |  <deployment>
  |       <if-exists>keep</if-exists>
  |       <instance>
  |          <instance-name>CMSPortletInstance</instance-name>
  |          <component-ref>helloworld.MyCMSPortlet</component-ref>
  |       </instance>
  |     </deployment>
  | </deployments>
  | 

also do the page - portlet instance mapping

c)copy jboss-portlet.xml from your portal-core.sar and place it in your web-inf 
directory

and voila !!
dvinci

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921118#3921118

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921118


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

Reply via email to