Page 1 of 1
absolute image path
Posted: Mon Jun 16, 2008 7:45 pm
by mrjamie
Hi, I know I saw a post on the forum here somewhere relating to absolute paths of images being used instead of relative paths, but for the life of me, I cannot find it again!
I need to have absolute paths for my images on my site due to some pages being templates for newsletters and if the paths are relative, the source code that is copied into a bulk email sender is void of "
http://mydomain.com/...." so none of my images work without manually editing the each image in the source code.
Could someone point me in the direction of turning off the forced relative path?
thanks in advance, J.
Re: absolute image path
Posted: Tue Jun 17, 2008 7:13 am
by Russ
Surely your bulk email sender could add the domain to the link?
Re: absolute image path
Posted: Tue Jun 17, 2008 9:29 am
by kermit
the {image} tag uses the whole enchilada
Re: absolute image path
Posted: Tue Jun 17, 2008 7:54 pm
by mrjamie
hi, thanks for responding,
I don't think either option are what i'm after. Basically the page that is generated to be used in html emails is here...
http://www.spinoutrecords.co.uk/index.p ... sletter-02
as you can see, there are several content blocks that are used to generate the full page in email friendly tables.... the header images are part of the template so they are ok, but the images in the page are generated from content blocks, so the domain is stripped out.
ie, in tinymce when you click img, add etc and insert the image, hit submit, the absolute path is changed to a relative path. This is the way I want to insert the images as it is easier for the person updating the site to do it this way.
This means that when the page is sent to someones inbox they will not see the images in the page as the path for the images is "/uploads/images etc etc" not
http://www.domain.com/uploads/...
I can obviously add the absolute path to the img tag, but this is annoying...
maybe i'll just add a smarty function to the content blocks for these templates...
Re: absolute image path
Posted: Tue Jun 17, 2008 10:14 pm
by Dr.CSS
Does the newsletter have a template for email?...
Can you just put the in the head of it?...