Usually, you would use the Management Portlet to create a new instance of the CMS Portlet, and then change the indexpage property of that copy. Unfortunately, that is not working at this time. See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=89308
thanks for answering!
I looked at the thread you sent and I was able to do the work around....but still I can't see how can I have a new instace of CMSPortlet thru the Management Portlet. I went to Instances then clicked on CMSPortlet and then on preferences...but I believe this is to change the preferences of the portlet I would like to have a CMSPortlet2. Do you know how can I do that?
Hey! Forget it...I found out how to do it...but one thing intrigues me...is this info only stored in the db? Why when I open myportal-object.xml file I can't see the new CMSPortlet I created and linked to myportal?
To create a new instance of a portlet, in the Management Portlet:
1) Click Portlets (in the top row of links)
2) Find the porlet in the list
3) In the right-hand side of the window enter a name for the new instance in the text filed above the Create Instance button, and then click the button.
Then you can go back to Instances and change the preferences (once the JIRA issue is fixed), and then add the instance to the page of your choice.
Yes, the instance information is stored only in the database. The *-object.xml file is used only to initialize or update the database information.
Hmm, I see possible need for a tool that generates a *-object.xml file based on the current portal configuration. Too bad I don't have the time...
you can always use the descriptors to set the windows, instances of portlets, and portlets definition (*-objects.xml, instance.xml etc...).
you can set the index page in one of these descriptor in preferences or parameters. the parameter (or preference) name is "index".
Sorry, but I don't remember exactly where.
in the descriptor, make sure your definition is tagged with "overwrite", so the descriptor definition overwrite the one that is yet in the DB.
(look at example, search for the word "overwrite" in some descriptor example files)
hope it helps,
I addeded the description of the portlet in the *-object.html and it worked find....I am having another issue though...
In the WYSIWYG I add a link to "myportal/construction.html". Fine.
Then I go to http://localhost:8080/portal/portal/myportal and I see my CMSPortlet and the link. I click on the link and it takes me to http://localhost:8080/portal/content/myportal/construction.html.
The problem is, the portal is completely different. I can see the construction.html inside of my CMSPortlet but all my other tabs are gone. What I see is the same configuration for the jboss-portal.sar.
Why is this happening? Do you guys have any ideas?