Image url to file puzzle (consistent image urls)
Permalink
Hi,
I have a situation where I want a client to be able to replace background images in bio shots.
At the moment the images are generically named as teacher1.jpg for example.
All the client needs to do is change the image and as long as its called tecaher1.jpg the css will see it as such and the picture will change.
This is fine when the path to url is background:url(images/teacher1.jpg)
However the client doesn't have access to the server so the path to url is background:url(http://candylane.co.nz/files/4313/0395/6486/teacher1.jpg) and as everyone knows this url changes everytime a new image is loaded.
Of course the css will be wrong after teacher1.jpg is updated.
I need a way to make sure that either the url to file is consistent all the time or a consistent way to call that file with css.
The client only accesses the website through the browser so server access isnt possible.
I need them to be background images because we are using rounded corners in the picture box.
Any brilliant developer out there with any ideas??
Nige
I have a situation where I want a client to be able to replace background images in bio shots.
At the moment the images are generically named as teacher1.jpg for example.
All the client needs to do is change the image and as long as its called tecaher1.jpg the css will see it as such and the picture will change.
This is fine when the path to url is background:url(images/teacher1.jpg)
However the client doesn't have access to the server so the path to url is background:url(http://candylane.co.nz/files/4313/0395/6486/teacher1.jpg) and as everyone knows this url changes everytime a new image is loaded.
Of course the css will be wrong after teacher1.jpg is updated.
I need a way to make sure that either the url to file is consistent all the time or a consistent way to call that file with css.
The client only accesses the website through the browser so server access isnt possible.
I need them to be background images because we are using rounded corners in the picture box.
Any brilliant developer out there with any ideas??
Nige
Does this thread help any?
http://www.concrete5.org/community/forums/customizing_c5/image-urls...
- Josh