You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Chris Joelly <ch...@unycom.com> on 2003/12/22 16:29:29 UTC

docs for turbine 2.2

Hello!

has anybody a good source of dokumentation for turbine 2.2?

for thinks like how to set and how to place css files? i tried
$page.setStyleSheet("/style_IE5.css") in my Default.vm and placed it in
the webapp root directory, but it isn't found...

has anybody some hints for this things? can css files used with the ui
tool as part of skins?

thx, Chris

-- 
mit freundlichen Grüßen / with kind regards
 
Ing. Christian Jölly @ Solutions
unycom  Information Technology Services GmbH
A-8042 Graz | Schmiedlstraße 1 / III

Tel: ++43 (0)316 / 818 828 - 30
Fax: ++43 (0)316 / 818 828 - 38
chris.joelly@unycom.com
http://www.unycom.com

Ich verklage gleich die Telekom wegen Schädigung meiner Nerven.
		-- Christopher Splinter

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: docs for turbine 2.2

Posted by Peter Riegersperger <ri...@subnet.at>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Dec 22, 2003, at 16:29, Chris Joelly wrote:

> Hello!
>
> has anybody a good source of dokumentation for turbine 2.2?
>
> for thinks like how to set and how to place css files? i tried
> $page.setStyleSheet("/style_IE5.css") in my Default.vm and placed it in
> the webapp root directory, but it isn't found...

use
$page.setStyleSheet($content.getURI("styles_IE5.css")) to link to a 
stylesheet that's in your webapp root.
(btw - if you want to use the stylesheet in all pages, you can put this 
line into layouts/default.vm).


peter

peter riegersperger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE/5xyAIMP39JYOy9IRAipaAKCRM/plJikiuUtHSJORiF40PD7/RACggJaU
C+rGYMYJxVPEdtBE7j1enF0=
=Wyfg
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: docs for turbine 2.2

Posted by Chris Joelly <ch...@unycom.com>.
Hello again!

some notes to the previous posting:

im interested where to find some documentaion about $page, how to add
styles, javascripts and where to place these files within the project.
i looked at VelocityPage class but found nothing there...

can anybody give me a hint?

thx, Chris

Am Mon, Dec 22, 2003 at 04:29:29PM +0100, Chris Joelly meinte:

-- 
mit freundlichen Grüßen / with kind regards
 
Ing. Christian Jölly @ Solutions
unycom  Information Technology Services GmbH
A-8042 Graz | Schmiedlstraße 1 / III

Tel: ++43 (0)316 / 818 828 - 30
Fax: ++43 (0)316 / 818 828 - 38
chris.joelly@unycom.com
http://www.unycom.com

Es gibt keine andere Offenbarung, als die Gedanken der Weisen; wenn
auch diese, dem Loose alles Menschlichen gemäß, dem Irrtum
unterworfen, auch oft in wunderliche Allegorien und Mythen
eingekleidet sind, wo sie dann Religionen heißen.
		-- Arthur Schopenhauer (Parerga und Paralipomena II)

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: docs for turbine 2.2

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi,

as far as i am concerned. if you would like to use the skinning mechanism 
within Turbine I would rather use the $ui pulltool for this, since it is 
possible to store a value for a skin inside a users permanent storage, and 
then use this information to retrieve the necessary css files and images. 
please refer to the java docs for the pull tool which can be found here:

http://jakarta.apache.org/turbine/turbine-2.2.1/apidocs/org/apache/turbine/
services/pull/util/UIManager.html

The Structure for these resources to work is tomcat_home/webapps/resources/ui/
default/images

If you want a new skin, simply create a new directory with the themes name, 
and put all the necessary information into this dir. You can use the 
$ui.setSkin(String skinName) Method to apply the theme.

kind regards

Jürgen Hoffmann

On Saturday 03 January 2004 00:15, Gavin wrote:
> Chris
>
> For using the css try this in you template:
> $page.setStyleSheet("$content.getURI('/style_IE5.css ')") 
>
> Regarding the $page tool it's a request tool defined in your
> TurbineResource.properties file, it is an instance of
> org.apache.turbine.util.template.TemplatePageAttributes so check out those
> API's for more info ;o)
>
> Gavin Barron B.Sc.
> J2EE Developer
> Genix Systems Ltd
> http://www.genixsystems.com/
>
> "Never underestimate the bandwidth of a station wagon full of hard drives"
> -----Original Message-----
> From: Chris Joelly [mailto:chris.joelly@unycom.com]
> Sent: Tuesday, 23 December 2003 4:29 a.m.
> To: turbine-user@jakarta.apache.org
> Subject: docs for turbine 2.2
>
> Hello!
>
> has anybody a good source of dokumentation for turbine 2.2?
>
> for thinks like how to set and how to place css files? i tried
> $page.setStyleSheet("/style_IE5.css") in my Default.vm and placed it in
> the webapp root directory, but it isn't found...
>
> has anybody some hints for this things? can css files used with the ui
> tool as part of skins?
>
> thx, Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: docs for turbine 2.2

Posted by Scott Eade <se...@backstagetech.com.au>.
Jürgen Hoffmann wrote:

>as far as i am concerned. if you would like to use the skinning mechanism 
>within Turbine I would rather use the $ui pulltool for this, since it is 
>possible to store a value for a skin inside a users permanent storage, and 
>then use this information to retrieve the necessary css files and images. 
>please refer to the java docs for the pull tool which can be found here:
>
>http://jakarta.apache.org/turbine/turbine-2.2.1/apidocs/org/apache/turbine/
>services/pull/util/UIManager.html
>
>The Structure for these resources to work is tomcat_home/webapps/resources/ui/
>default/images
>
>If you want a new skin, simply create a new directory with the themes name, 
>and put all the necessary information into this dir. You can use the 
>$ui.setSkin(String skinName) Method to apply the theme.
>  
>
And for a better implementation of  the skinning mechanism see:

    
http://cvs.apache.org/viewcvs.cgi/jakarta-turbine-2/proposals/seade/UIService/

When I get around to it I will be proposing this as a replacement for 
UIManager for Turbine 2.4.

Scott

-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au





---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: docs for turbine 2.2

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi,

as far as i am concerned. if you would like to use the skinning mechanism 
within Turbine I would rather use the $ui pulltool for this, since it is 
possible to store a value for a skin inside a users permanent storage, and 
then use this information to retrieve the necessary css files and images. 
please refer to the java docs for the pull tool which can be found here:

http://jakarta.apache.org/turbine/turbine-2.2.1/apidocs/org/apache/turbine/
services/pull/util/UIManager.html

The Structure for these resources to work is tomcat_home/webapps/resources/ui/
default/images

If you want a new skin, simply create a new directory with the themes name, 
and put all the necessary information into this dir. You can use the 
$ui.setSkin(String skinName) Method to apply the theme.

kind regards

Jürgen Hoffmann

On Saturday 03 January 2004 00:15, Gavin wrote:
> Chris
>
> For using the css try this in you template:
> $page.setStyleSheet("$content.getURI('/style_IE5.css ')") 
>
> Regarding the $page tool it's a request tool defined in your
> TurbineResource.properties file, it is an instance of
> org.apache.turbine.util.template.TemplatePageAttributes so check out those
> API's for more info ;o)
>
> Gavin Barron B.Sc.
> J2EE Developer
> Genix Systems Ltd
> http://www.genixsystems.com/
>
> "Never underestimate the bandwidth of a station wagon full of hard drives"
> -----Original Message-----
> From: Chris Joelly [mailto:chris.joelly@unycom.com]
> Sent: Tuesday, 23 December 2003 4:29 a.m.
> To: turbine-user@jakarta.apache.org
> Subject: docs for turbine 2.2
>
> Hello!
>
> has anybody a good source of dokumentation for turbine 2.2?
>
> for thinks like how to set and how to place css files? i tried
> $page.setStyleSheet("/style_IE5.css") in my Default.vm and placed it in
> the webapp root directory, but it isn't found...
>
> has anybody some hints for this things? can css files used with the ui
> tool as part of skins?
>
> thx, Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: docs for turbine 2.2

Posted by Gavin <ga...@genixsystems.com>.
Chris 

For using the css try this in you template:
$page.setStyleSheet("$content.getURI('/style_IE5.css ')") 

Regarding the $page tool it's a request tool defined in your
TurbineResource.properties file, it is an instance of
org.apache.turbine.util.template.TemplatePageAttributes so check out those
API's for more info ;o)

Gavin Barron B.Sc.
J2EE Developer
Genix Systems Ltd
http://www.genixsystems.com/

"Never underestimate the bandwidth of a station wagon full of hard drives"
-----Original Message-----
From: Chris Joelly [mailto:chris.joelly@unycom.com] 
Sent: Tuesday, 23 December 2003 4:29 a.m.
To: turbine-user@jakarta.apache.org
Subject: docs for turbine 2.2

Hello!

has anybody a good source of dokumentation for turbine 2.2?

for thinks like how to set and how to place css files? i tried
$page.setStyleSheet("/style_IE5.css") in my Default.vm and placed it in
the webapp root directory, but it isn't found...

has anybody some hints for this things? can css files used with the ui
tool as part of skins?

thx, Chris

-- 
mit freundlichen Grüßen / with kind regards
 
Ing. Christian Jölly @ Solutions
unycom  Information Technology Services GmbH
A-8042 Graz | Schmiedlstraße 1 / III

Tel: ++43 (0)316 / 818 828 - 30
Fax: ++43 (0)316 / 818 828 - 38
chris.joelly@unycom.com
http://www.unycom.com

Ich verklage gleich die Telekom wegen Schädigung meiner Nerven.
		-- Christopher Splinter

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org