Porting My VT theme to uPortal 2.5.2
Step 1
Download and unzip uPortal_rel-2.5.2.zip. Make sure you have correctly set up the JDBC properties in build.xml, rdbm.properties, dbloader.xml and possibly PersonDirs.xml. You may run "ant initportal" to verify the setup before proceeding to next step
Step 2
Download and unzip the uportal-2-4-2-myvt-quick-start.zip. Goto uportal-2-4-2-myvt-quick-start directory and copy the following files from uPortal_rel-2-4-2/ to corresponding 2.5.2 source directory.
webpages/frame.jsp
webpages/navigate.jsp (correct the class path to <%@ page import="org.jasig.portal.layout.alm.IALFolderDescription" %> )
source/edu/*
webpages/media/edu/*
webpages/stylesheets/edu/*
webpages/stylesheets/org/jasig/portal/channels/CGenericXSLT/RSS/rss-2.0.ssl
webpages/stylesheets/org/jasig/portal/channels/CGenericXSLT/RSS/rss-2.0.xsl
webpages/stylesheets/org/jasig/portal/channels/CContentSubscriber/html.xsl
properties/al/fragments.xml (replace "column::footer" with "column::footer-column")
properties/chanpub/cnet-news-com.xml
Step 3a
Download and apply the attached patch myvt-2.5.2.diff to 2.5.2
patch -p0 < myvt-2.5.2.diff
The patch modifies the UserInstance.java and CContentSubscriber.java.
Step 3b
Set org.jasig.portal.MediaManager.omit_doctype=no in portal.properties. This corrects the rendering problem with the browsers such as IE and firefox.
Step 4
Run "ant initportal" to rebuild everything with My VT customization
Step 5
Add My VT structure and theme stylesheet. Put down the returned stylesheet ID (11 and 12 respectively in this case) for next step. Remember you must add structure stylesheet before theme stylesheet.
ant addstylesheet \ -DstylesheetType=-s \ -DstylesheetUri=/edu/vt/portal/layout/TabPageColumn/TabPageColumn.xsl \ -DdescriptionUri=/edu/vt/portal/layout/TabPageColumn/TabPageColumn.sdf ant addstylesheet \ -DstylesheetType=-t \ -DstylesheetUri=/edu/vt/portal/layout/TabPageColumn/InlineCustomization/InlineCustomization.xsl \ -DdescriptionUri=/edu/vt/portal/layout/TabPageColumn/InlineCustomization/InlineCustomization.sdf
Step 6
Modify UP_USER_PROFILE table to use My VT structure and theme stylesheet as documented in Fragments and Layout Management Approaches. By default, 2.5.2 is loaded with standard ALM structure and theme stylesheet ID.
UPDATE up_user_profile SET structure_ss_id=11, theme_ss_id=12 WHERE theme_ss_id=11;
Step 7
Done. Start the tomcat.