PDA

View Full Version : Updating template values to pages


jl.davis
03-01-2007, 05:08 AM
Hi guys,

I've had to amend the location of my background image on my template page (from style="background: url(/images/main_header3.jpg)" to style="background: url(.../images/main_header3.jpg)" but the value being read on all the dependent pages is still the former, and hence the image is not displaying.

I'm also unable to manually edit the value on each individual page to correct this.

How can I force the pages to recognise this change to the template? All other changes to the template update automatically no worries!

Thanks

davidj
03-01-2007, 06:07 AM
this path is incorrect

.../images/main_header3.jpg


it should be...


../images/main_header3.jpg //<< notice the 2 dots

jl.davis
03-01-2007, 06:26 AM
Thanks David, Could you please explain why (for future reference)?

James

davidj
03-01-2007, 06:38 AM
.. denotes a one directory up

if you have this structure

my docs
docs >
pics > date > photo
music > artist > album > track


and you were inside album and you wanted to target a file in music this is the path

../../musicfile.jpg

the first 2 dots get you into artist and the last 2 get you into music