7 Replies Latest reply on Nov 8, 2006 1:47 PM by mmontoni

    CMS Question....

    mmontoni Newbie

      Hi,

      I want to deploy an instance of the CMSPortlet on one page of my portal and configure it to display a different start page. I looked in the reference guide and user guide but I can't understand how to do...

      Could someone give me a hint?

      Thanks!

      Mariella.

        • 1. Re: CMS Question....
          Peter Johnson Master

          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

          and http://jira.jboss.com/jira/browse/JBPORTAL-1082

          • 2. Re: CMS Question....
            mmontoni Newbie

            Hi Peter,

            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?

            Thanks!

            Mariella.

            • 3. Re: CMS Question....
              mmontoni Newbie

              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?

              Thanks!

              • 4. Re: CMS Question....
                Peter Johnson Master

                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.

                • 5. Re: CMS Question....
                  Peter Johnson Master

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

                  • 6. Re: CMS Question....
                    Antoine Herzog Master

                    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,

                    • 7. Re: CMS Question....
                      mmontoni Newbie

                      Hi,

                      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?

                      Thanks!

                      Mariella.