Updated tutorial on how to create a scientific poster in a few easy steps.
Electrical & Computer Engineer MSc with great love in Drupal (http://drupal.org/user/829430).
PosterGenius™ team member & More Than (just) Themes web developer.
Monday, June 22, 2009
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
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
JBOSS Portal Installation
Chapter 1. Download
Download JBoss portal from http://www.jboss.org/jbossportal/download/index.html.Package: JBoss Portal + JBoss AS 4.2.3
Direct download link: http://downloads.sourceforge.net/jboss/jboss-portal-2.7.2-bundled.zip
Chapter 2. Installation
2.1 Folder structure (προτεινόμενη)
Extract jboss-portal-2.7.2-bundled.zip to a desired folder (for example C:\server\jboss). Το τελικό path του portal είναι C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.22.2 Database
Δημιουργούμε μια βάση δεδομένων (for example jboss).All database tables will be created for you at runtime.
2.3 JDBC connector
Download MySQL JDBC connector from http://dev.mysql.com/downloads/connector/j/5.1.htmlΤο αρχείο mysql-connector-java-5.1.7-bin.jar πρέπει να τοποθετηθεί στο path $JBOSS_HOME/server/default/lib (C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\lib)
2.4 JBoss and MySQL Configuration
- Copy C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\setup\portal-mysql5-ds.xml (for PHP5) to C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy
- Copy C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\docs\examples\jca\mysql-ds.xml to C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy
- Rename C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy\portal-hsqldb-ds.xml to portal-hsqldb-ds.xml-rename (ώστε να διαβαστούν το αντίστοιχο mysql)
- Rename C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy\hsqldb-ds.xml to hsqldb-ds.xml-rename (ώστε να διαβαστούν το αντίστοιχο mysql)
2.5 Configure portal-mysql5-ds.xml and mysql-ds.xml
Τροποποίηση αυτών των αρχείων για τη σωστή σύνδεση στη βάση δεδομένων (XAMMP),portal-mysql5-ds.xml: Replace
PortalDS
jdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=false&jdbcCompliantTruncation=false
com.mysql.jdbc.Driver
portal
portalpassword withPortalDS
jdbc:mysql://localhost/jboss?useServerPrepStmts=false&jdbcCompliantTruncation=false
com.mysql.jdbc.Driver
root
- mysql-ds.xml: Replace
MySqlDS
jdbc:mysql://mysql-hostname:3306/jbossdb
com.mysql.jdbc.Driver
x
y
withMySqlDS
jdbc:mysql://localhost/jboss
com.mysql.jdbc.Driver
root
2.6 Deploy JBoss portal
Run from console C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\bin\run.bat -b 0.0.0.0 (with parameter -b 0.0.0.0 εάν θέλουμε το portal να είναι κοινόχρηστο)2.7 Action
http://localhost:8080/portal
Subscribe to:
Posts (Atom)