I wanted to get people's feedback on how they changed the layout of Luminis.
I am impressed with http://my.nottingham.ac.uk (They have a guest account) where they dropped the table layout in favor of css, as well as merged the header and icon menu into one bar.
https://usource.uvic.ca/ (they have a demo as well) did the same thing. They also do a great DHTML expanding channel content.
What kinds of mods have other schools done and how did they make them? What kinds of problems did you have? Do SCT updates ever blow away all of your work? How do you manage revisions (CVS)?
We/I am planning to make some changes and wanted to see what the community had to suggest before I go down the non-supported road.
What I found today...
Changing icons:
icons are storeed under:
/opt/luminis/webapps/luminis/media/org/jasig/portal/layout/tab-column/nested-tables/cp/controls
Icon naming convention:
Staring icon: help_dft.gif
Rollover icon: help_roll.gif
Icon Size:
30wx26h
-----
Next: I want to find where the main header is in the layout.
Is this it? /opt/luminis/webapps/luminis/stylesheets/org/jasig/portal/layout/tab-column/nested-tables/nested-tables.xsl
this is sortof complicated
this is sortof complicated sortof not :)
The layout of the portal is indeed here:
/opt/luminis/webapps/luminis/stylesheets/org/jasig/portal/layout/tab-column/nested-tables/nested-tables.xsl
This controls most of the layout. There are though some channels that are included in the header section (CLogin, CHeader and CUserPreferences). The formatting for these channels is in the uportal.jar file thats in the lib folder and not in the stylesheets folder. I do suggest changing both though if not just to stop issues with multiple versions.
We use SubVersion and Eclipse in our dev environment.
Hope that helps
Stumbled upon this in my research on the customization topic...
You can look at other people's customizations to see how they do what they do by http://my.nottingham.ac.uk/cp/stylesheets/org/jasig/portal/layout/tab-column/nested-tables/nested-tables.xsl which appears to be web accessible. Then you can run a diff on your version to find the relevant portions. The CHeader and what not are a diff story I believe.
!
Cheeky ;-)
Path
Where in that jar should I modify things?
/opt/luminis/webapps/luminis/uPortal.jar
What files actually need to be touched if any? Are they not all deployed out already?
Oh yea, and SCT updates do
Oh yea, and SCT updates do indeed blow away our customizations.
Once we upgrade a server, then I take the upgraded files and compare them to our modified files and create a new version of our customizations that can be used to patch the new version of Luminis. This takes me a couple hours depending on the upgrade size.
Re: my.nottingham.ac.uk layout
We removed as many nested tables are we could here (as there are many) and converted the tabs into an unordered list. Merging the header and icons frees up some real estate for actual content.
I guess we could try harder, but it seems to do the trick at the moment.
I've extensively changed the Popups Disabled page (view source) to display a more friendly messsage dependant on the browser and version used as well as snooping for some common browser toolbars - feel free to steal/improve on this (and report back please).
The login page is also (slightly) different depending on the url you start from...
Staff/Students
Prospective Students
and this redirects to the correct url on logout/timemout (cookie based).
Of course none of this is supported and it's always overwritten on upgrade. I think we're going to feel a great deal of pain on migration to LP IV.
Also, see Jon's Pimp My Portal Presentaion for a nice introduction to the darkside of Luminis customization.
Extra padding around page
Purpose of Changes:
To remove the extra 10 pixel padding around the Luminis login page and the Main Luminis pages. The goal here is to make as few changes to stock code.
Files to Change:
/opt/luminis/webapps/luminis/WEB-INF/templates/portal/login.thtml
LINE 90 - change CELLSPACING=10 to 0
/opt/luminis/webapps/luminis/stylesheets/org/jasig/portal/layout/tab-column/nested-tables/nested-tables.xsl
Line 574 - cellpading from 10 to 0
Line 775 - add style="padding: 0 4px 0 4px;" after class="uportal-background-content" This pushed the channels back away from the wall. (yes you could just change the .css file but that would introduce another file to change)
Tip to find code snippets:
find /opt/luminis/webapps/luminis | xargs grep "CELLSPACING=10"