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.
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, Sohil. That is good to know. And it makes sense.
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).
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.
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.
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.
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