Monday, June 15, 2009

JBoss tab page with html+css content

1. Login as Administrator
2. Go to CMS tab
3. Now, you can upload your files. I uploaded an html page and a folder with images.
*path for images in html must be "default/{your structure}"
4. Go to Admin>Portal Objects>Portals>default portal>Manage sub-pages within default portal and Create a page named:Test (for example)
5. Go to Test>Page Layout
6. Select the type of content that will be added to the page:CMS
7. Select content that will be added to the page:Your .html page
8. Then click add at the PageLayout region
9. Now, you can see your new tab and your html page inside tab


+ CSS

1. You must put you .css file C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy\jboss-portal.sar\portal-core.war\themes\common\
2. You must go to current theme folder C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy\jboss-portal.sar\portal-core.war\themes\renewal\
3. Edit portal_style.css
4. At the top of .css put this code @import url("/portal-core/themes/common/front.css");
5. Now you can see your html page with your css

No comments: