[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    Re: Rendering Frames and Concatonating Strings & Background Images
From:       "Geir Magnusson Jr." <geirm () optonline ! net>
Date:       2001-10-25 19:50:20
[Download RAW message or body]

On 10/25/01 2:51 AM, "Skondras Panagiotis" <pask@acn.gr> wrote:

> 
> 
> Brian Hall wrote:
> 
>> I have three quick (I hope) questions about rendering of the
>> templates.
>> 
>> 1.  Can a template be in the form of a framed page?  I would like to
>> have an html banner across the top, a permanent search panel vm
>> on the left and a results vm on the right.
>> 
> 
> Yes you can. like this this is a frameset
> 
> #set ($h=30)
> #if ( $is_ie )
>   #set ($h=30)
> #end
> <FRAMESET cols="200,*" FRAMEBORDER="1" BORDER="1"  framespacing="1">
>       <FRAME
> SRC=$link.setPage("foo.vm").
> name="left" FRAMEBORDER="1" BORDER="1"  framespacing="1" scrolling="NO">
>       <FRAME SRC=$link.setPage("foo1.vm") NAME="right" FRAMEBORDER="1"
> BORDER="1"  framespacing="0"
> scrolling="YES">
> </FRAMESET>

>> 
>> 3,  I tried to put a <body background="by9.gif" > statement into the
>> template but the background image would not render.  Can it be
>> done or is it simply that it can't find the image file?  I tried locating it
>> in all the subdirectories.
>> 
> 
> Yes  like this
> $page.setBackground($content.getURI($skin.BgImg))
> 
> $skin.BgImg is the image name
> 

Note that these two answers are Turbine specific, I believe, and would only
apply if you were using Turbine.

Velocity has no $page or $content objects that it places in the context.

Geir

-- 
Geir Magnusson Jr.                                     geirm@optonline.net
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic