about a tpl contain "frame"

lightacad

Joined: 2009-03-11
Posts: 6
Posted: Sun, 2009-05-03 17:17

my module have a tpl the content are

<iframe border="0" name="rbank" src="{g->url href="modules/pickphotos/templates/right.tpl"}" width="100%" height="500" allowTransparency scrollbars=yes frameBorder="0"></iframe>

this param "src" on this write way can not be parsed, in right.tpl "{$id}" is only the character string.

what can I do?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2009-05-03 18:44

I don't understand.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
lightacad

Joined: 2009-03-11
Posts: 6
Posted: Mon, 2009-05-04 06:53

I means in tpl file how to include another tpl file

if like this "{g->url href="modules/pickphotos/templates/right.tpl"}"

my variable in file "right.tpl" can not use

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-05-04 13:31

{g->theme include="right.tpl"}
if right.tpl is in the theme.
or
{include file='modules/pickphotos/templates/right.tpl'}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
lightacad

Joined: 2009-03-11
Posts: 6
Posted: Tue, 2009-05-05 02:51

thanks~~