[Chameleon] Server side include?

pxniw pxniw pxniw69 at yahoo.com
Fri Jul 2 20:18:21 EDT 2004


Do I need to go to source code with this?
If so how? Where do I start? my version I use is from
January 2004... (I cant find version# anywhere)

Thanks


> Ok little tougher this time.
> 
> How do I include this in 'include'
> 
> ie my url is this
> http://www.test.com/cgi-bin/test.cgi?fruit=apple
> 
> and this is what I do:
> 
> [#http://www.test.com/cgi-bin/test.cgi?fruit=apple#]
> 
> So far so good.
> 
> But now if I have a form on previous page with value
> [$NAME_OF_FRUIT$] it shows fine, by itself ie
> <B>[$NAME_OF_FRUIT$]</B>
> will actually show apple bold (Or whatever fruitname
> was entered on form, before submitting it to
> chameleon
> created page)
> 
> So how do I include my include with my include (That
> sounds kinda cool ;) )
> 
> I tried this:
>
[#http://www.test.com/cgi-bin/test.cgi?fruit=[$NAME_OF_FRUIT$]#]
> 
> It won't parse [$NAME_OF_FRUIT$] inside "##"
> I tried several different ways, but could not get it
> to work.
> 
> Any ideas?
> 
> Thanks
> 
> 
> --- pxniw pxniw <pxniw69 at yahoo.com> wrote:
> > Thanks
> > 
> > 
> > --- Julien-Samuel Lacroix
> <jlacroix at dmsolutions.ca>
> > wrote:
> > > I would add that the [#INCLUDEFILENAME#] syntax
> is
> > > parsed during the 
> > > preprocessing, so you can include anything with
> > it,
> > > widgets or html (not 
> > > php since php is not parsed in chameleon). Also
> it
> > > use the file() 
> > > functionality of php, so if your php support it,
> > you
> > > will be able to 
> > > include URL or file on another server.
> > > 
> > > Julien
> > > 
> > > Jason Fournier wrote:
> > > > You can use the following syntax in your
> > template:
> > > > 
> > > > For Files:
> > > > 
> > > > [#INCLUDEFILENAME#]
> > > > 
> > > > For PHP Variables:
> > > > 
> > > > [$VARIABLENAME$]
> > > > 
> > > > For files the include *may* have to be located
> > in
> > > the same directory as your template ... 
> > > > I'm not sure if you can use paths in the
> > include.
> > > > 
> > > > Jason
> > > > 
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > > -- 
> > >
> >
>
------------------------------------------------------------
> > > Julien-Samuel Lacroix           
> > > jlacroix at dmsolutions.ca
> > > DM Solutions Group              
> > > http://www.dmsolutions.ca/
> > >
> >
>
------------------------------------------------------------
> > > 
> > 
> > 
> > 
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> > http://promotions.yahoo.com/new_mail
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> >
> http://lists.maptools.org/mailman/listinfo/chameleon
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


More information about the Chameleon mailing list