8 Replies Latest reply on Jul 8, 2008 9:46 AM by soshah

    I'm not able to access CMS content

    br4wn

      Hi all,
      i've installed and configured Jboss Portal and it works fine. I can create/view/edit portals, pages, portlets and so on. I can use CMS... but i'm not able to access CMS content from outside the portal.

      My portal is reachable (on local machine) using: http://localhost:8080/portal

      following the official documentation i would be able to reach CMS content using http://localhost:8080/content/pathToMyContent but it does'nt work!

      (I tried also using http://localhost:8080/portal/content/pathToMyContent but it does'nt work).

      Sorry for the (perhaps) trivial question and thanks in advance.

        • 1. Re: I'm not able to access CMS content
          peterj

          OK, this is weird.

          If I enter the url http://localhost:8080/portal/content/default/images/logo.gif, all I get is the logo. Which is all I really want.

          But if I enter the url http://localhost:8080/portal/content/default/project.html. I get the full portal home page with the CMS portlet displaying the "default/project.html" content.

          As far as I can tell, whenever I ask for an HTML file, I get the whole home page, but for any other file type I get only that file (I tried various image files, and doc files).

          By the way, I am using 2.6.2. Br4wN, you never said which Portal version you are using.

          • 2. Re: I'm not able to access CMS content
            soshah

            Peter-

            This is by design. The way CMS Portlet works is that if its HTML content it is displayed in the context of a Portal with the (Theme, the Page, and inside a CMS Portlet Window).

            For other content types, they are treated as stream commands, and those are fetched minus the Portal aggregation. Examples of such content is images, stylesheets, other binary files etc

            Thanks

            • 3. Re: I'm not able to access CMS content
              peterj

              Thanks, Sohil. That is good to know. And it makes sense.

              • 4. Re: I'm not able to access CMS content
                br4wn

                PeterJ i'm using 2.6.2 too...

                By the way now i'm able to reach contents (the wrong was the usage of /content context instead of /portal/content... the documentation is not very very clear).

                Thank you!

                • 5. Re: I'm not able to access CMS content
                  dashaun

                  Shouldn't there be a parameter that I can pass to the cmsportlet so that it doesn't wrap the entire content?

                  I want to show content from the CMS (localized) inside of another JSP page.

                  This would allow me to have my instructions and descriptions editable via the CMS and displayed along with my functionality.

                  • 6. Re: I'm not able to access CMS content
                    dashaun

                    As far as I can tell, there is no parameter to turn off the decoration of mime type text/html.

                    What would be the best process to allow for the addition of a "decorate=false" paramter to be sent to the content portlet in order to have text/html rendered without the extra page decoration/theme.

                    Keep in mind I still want the content portlet to strip the html/head/body tags.

                    • 7. Re: I'm not able to access CMS content

                      Hi,

                      I have copied a ".gif", file to the D:\jboss\server\default\deploy\jboss-portal.sar\portal-cms.sar\portal\cms\conf\default-content\default folder. But I cannot view this file from the jBoss content management portlet.

                      But I can view the default logo.gif file using the url http://localhost:8080/portal/content/default/images/logo.gif.

                      Please guide me.

                      None of the jBoss documentations in the web helped.

                      Thanks in anticipation.

                      • 8. Re: I'm not able to access CMS content
                        soshah

                         


                        I have copied a ".gif", file to the D:\jboss\server\default\deploy\jboss-portal.sar\portal-cms.sar\portal\cms\conf\default-content\default folder.


                        You need to upload the gif file using the CMS Admin tool instead of copying it directly into the default-content folder. Without that you will be missing the meta data used by JackRabbit and hence wont be able to use the file correctly

                        Thanks