ggolden     2002/09/09 09:57:54

  Modified:    webapp/WEB-INF/conf JetspeedResources.properties
  Log:
  To aid in the integration of jetspeed into a portal project,
  I want to use as much of Jetspeed "out of the box" as possible,
  minimizing the set of files I need to patch or replace.
  
  To support this, I've made a few changes to the vm templates that
  control the portal page, content.vm and default.vm, with support in
  JetspeedResources.properties and GlobalMacros.vm
  
  First, each portal page html can have a set of scripts (javascript or whataver)
  placed into the <head> section of the html.  This is done by invoking a velocity
  macro #headScripts().  This invocation is now standard in the jetspeed templates.
  
  The default headScripts() macro in GlobalMacros.vm is empty.  One would edit this or 
append another script by the same name with the content one wants for one's site (if 
there are two macros with the same name, the last one is used by Velocity).
  
  Second, each portal page html <body> tag may have onLoad or other attributes.  This 
is done by invoking a velocity macro #bodyOnLoad(), now standard in the
  jetspeed templates.
  
  The default bodyOnLoad() in GlobalMacros.vm is empty, and can be edited or 
overridden for a site.
  
  Third, the default.vm had a html title tag that included some text pre-pended to the 
portal page's title.  I've changed this so that there's a new jr.p field, 
"portalpage.title_prefix" to contain any prefix text for titles.  We can change or 
override this setting in the config files to control the title for our site.
  
  Revision  Changes    Path
  1.86      +7 -1      
jakarta-jetspeed/webapp/WEB-INF/conf/JetspeedResources.properties
  
  Index: JetspeedResources.properties
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/JetspeedResources.properties,v
  retrieving revision 1.85
  retrieving revision 1.86
  diff -u -r1.85 -r1.86
  --- JetspeedResources.properties      27 Aug 2002 19:25:23 -0000      1.85
  +++ JetspeedResources.properties      9 Sep 2002 16:57:54 -0000       1.86
  @@ -539,6 +539,12 @@
   bottomnav.enable=true
   
   #########################################
  +# Portal Page customization             #
  +#########################################
  +# html page title text prefix - prepended to portal page title if defined.
  +portalpage.title_prefix=Jakarta Jetspeed Portal:
  +
  +#########################################
   # HTTP Page header                      #
   #########################################
   # http.lifetime is the lifetime of the page as set in the
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to