On Wednesday, September 3, 2003, at 02:01 AM, Marco P�hler wrote:
Hi David,Oops, you can't find good help these days :-)
http://jakarta.apache.org/jetspeed/api/org/apache/jetspeed/portal/ Portlet.html#setTitle(java.lang.String)
This sets the title of the portlet, isn't it ? I wish to set the title of
the webpage, this means something like this:
You can't set the title from a portlet, its too late. However it is possible.
also see
In the JR.p, see:
portalpage.title_prefex=
that sets the prefix in webapp/WEB-INF/templates/vm/layouts/html/default.vm
#set ($titlePrefix = $config.getString("portalpage.title_prefix"))
<title>#if ($titlePrefix)$titlePrefix #end$!{data.profile.document.portlets.getMetaInfo().title}</title>
So as you can see the title is set as a combination of the title prefix from the JR.p, and the title from PSML file (of the outermost portlets collection in the PSML file)
In order to do change the title programmatically, you will need to write your own Turbine Layout module, and put your dynamic info in the context, then access it in your template like above
-- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] +01 707 773-4646 +01 707 529 9194
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
