Re: Fw: [SMARTY] Path to images in templates

From: Date: Fri, 14 Mar 2003 04:01:59 +0000
Subject: Re: Fw: [SMARTY] Path to images in templates
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8637@lists.php.net to get a copy of this message
this will work as long as your apache setup enables followsymlinks. if not, you could try smarty's output filtering to rewrite the image paths at runtime. http://smarty.php.net/manual/en/advanced.features.outputfilters.php - john On Thu, Mar 13, 2003 at 09:42:15PM -0600, Jason Sweat <sweatjejm@mchsi.com> wrote: > I think this subject came up a couple of months ago on the list. > > IIRC, the best method was to place a symbolic link in you template directory > back to your image directory. i.e. > > ./script > ./script/img > ./script/templates > > in templates, do > ln -s ../img img > > HTH > > Jason > > ----- Original Message ----- > From: "Joscha Feth" <joscha@feth.com> > To: <smarty-general@lists.php.net> > Sent: Thursday, March 13, 2003 7:10 PM > Subject: Re: [SMARTY] Path to images in templates > > > > Monte Ohrt wrote: > > > You could keep your image path in a config file. > > > > > > <img src="{#imagePath#}/foo.jpg"> > > yes, but Dreamweaver messes that up, because no path {#something#}/ does > > exist... > > > > greets, > > Joscha > > > >

« previous php.smarty.general (#8637) next »