|
A theme transforms back-end data and layout into user interfaces. On this page The Theme
Theme StructureThis example structure depicts the dashboard view of the uPortal 3.1 distribution. The Universality theme may be configured to produce different structural arrangements. Layout CSSCSS is used to produce the basic visual layout. uPortal uses the Fluid Skinning System for basic grid layout and extends that with a uPortal-specific CSS file. Sample theme output with layout CSS applied Universality"Universality" is the name given to the default uPortal 3.x theme. The name is a play on the words "universal" and "university". Key FeaturesEasy to customizeA key goal was to make the theme easy to customize and easy to migrate customizations into future releases.
Web Standards & AccessiblityProduce Grade-A pages and markup that is friendly and usable by all.
JavaScript & AJAXElegant use of JavaScript for rich user interaction.
Universality ArchitectureAn overview of how Universality generates a page. Reference: Rendering Process Theme File LocationSource uportal-war\src\main\resources\layout\structure\columns Theme Transform uportal-war\src\main\resources\layout\theme\universality Deployed uPortal\WEB-INF\classes\layout\structure\columns Theme Transform uPortal\WEB-INF\classes\layout\theme\universality Reference: Skin File Location, Structure Transform, and Theme Transform Theme ConfigurationThe theme was built to be configured to meet a broad scope of needs and desires.Reference: Theme Configuration InternationalizationAll portal theme text and labels reside in an XML file (messages.xml, located in the same location as the theme files) that can be localized. The theme references the text/label by token. For example: <img src="{$SKIN_PATH}/images/portal_logo.png" alt="{$TOKEN[@name='LOGO']}"/> Where the alt text references the token with a name of LOGO. Looking up LOGO in messages.xml, we find: <token name="LOGO">uPortal by JA-SIG</token>
The resultant markup sent to the browser: <img src="{$SKIN_PATH}/images/portal_logo.png" alt="uPortal by JA-SIG"/> Note:
SkinsA skin overlays the theme, specifying visual style and formatting. |
RELATED LINKS
REFERENCES
XML/XSLT Resources HTML Resources CSS Resources JavaScript Resources |
