You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Weaver, Scott" <Sw...@rippe.com> on 2001/11/14 17:55:20 UTC
RE: How to strip all HTML markup from velocity templates in turbi
ne
I found a catch. It seems that the $page tool doesn't work when using the
VelocityOnlyLayout. My theory is because TemplatePageAttributes (the $page
tool class itself) appears to rely on the fact that the layout is an ECS
document, and VelocityOnlyLayout does not use ECS, so it no worky worky.
However, I think you could easily emulate this tool by adding some Velocity
variables to your template in those specific places.
Scott
-----Original Message-----
From: Weaver, Scott [mailto:Sweaver@rippe.com]
Sent: Wednesday, November 14, 2001 11:35 AM
To: 'Turbine Users List'
Subject: RE: How to strip all HTML markup from velocity templates in
turbi ne
Worked like a charm! I now have Velocity template driven style sheets!
Thanks to Scott and Eric for their input.
Scott
-----Original Message-----
From: Eric Dobbs [mailto:eric@dobbse.net]
Sent: Tuesday, November 13, 2001 5:53 PM
To: Turbine Users List
Subject: Re: How to strip all HTML markup from velocity templates in
turbine
In TurbineResources.properties change this...
services.VelocityService.default.layout = VelocityECSLayout
...to this...
services.VelocityService.default.layout = VelocityOnlyLayout
-Eric
On Tuesday, November 13, 2001, at 03:25 PM, Weaver, Scott wrote:
> Is there any way to stop turbine from putting
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
> "http://www.w3.org/TR/REC-html40/loose.dtd">
> <html><head><title></title></head><body>
> ...
> </body></html>
>
> into the template pages. I created a blank.vm for a layout so I could
> dynamically serve up style sheets using a velocity template. However,
> even
> with a blank layout, I still get html, head and body tag.
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
> "http://www.w3.org/TR/REC-html40/loose.dtd">
> <html><head><title></title></head><body>
> .leftCorner {background-image :
> url(images/default_left_menu_cap_bottom.gif);background-repeat :
> no-repeat;
> background-position: right top}
> .leftMenu { background-image:
> url(/store/images/layout/default_layout_r2_c1.gif); background-repeat:
> repeat-y}
> .leftMenuContent { font-family: Arial, Helvetica, sans-serif;
> font-size:
> 12px; color: #000000; padding-left: 20px}
> .middleBanner { background-image:
> url(images/layout/default_layout_r1_c2.gif); background-repeat:
> repeat-y}
> .leftBanner { background-image:
>
url(http://localhost:8080/store/servlet/store/template/images%2Flayout%2Fdef
> ault_layout_r1_c1.gif)}
> </body></html>
>
> Any ideas?
>
> Scott
>
> --
> To unsubscribe, e-mail: <mailto:turbine-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:turbine-user-
> help@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>