absolute image path

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
mrjamie

absolute image path

Post 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. 
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: absolute image path

Post by Russ »

Surely your bulk email sender could add the domain to the link?
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: absolute image path

Post by kermit »

the {image} tag uses the whole enchilada
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
mrjamie

Re: absolute image path

Post 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...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: absolute image path

Post by Dr.CSS »

Does the newsletter have a template for email?...

Can you just put the in the head of it?...
Locked

Return to “CMSMS Core”