close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

image path

Thread began 6/29/2009 12:21 pm by roby258376 | Last modified 7/29/2009 2:43 am by roby258376 | 8049 views | 13 replies

MickW

I thought I'd add to this as I too am having problems with my image paths - the solution posted by SozoCreative is the closest I've got, thanks, (my 'setup' is very similar) but it doesn't seem to work in IE6 for reasons I'll explain..

All my PowerCMS files are contained in folder called 'cms' (cms/).
I would like images to be uploaded to cms_images/
I don't have a local testing server.

This is my WA_Globals.php:
$WAGLOBAL_Root_URL = "http://www.mysite.co.uk/" ; //Absolute path to your site folder.
$WAGLOBAL_Site_Name = "Admin" ;

$WAGLOBAL_localRoot = "/cms/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/cms/"; //relative path to your PowerCMS files on your remote server.

//iRite Images upload settings
$WAGLOBAL_Images_Folder = "cms_images/"; //relative path to your images folder.

When I go to the editor and upload an image with iRite this is what I get (Before amending the config.php file as described in the previous post)......

If I click the 'Upload' tag in 'Image Properties' and use that dialogue to upload an image it is placed in image.jpg but the URL displayed in the 'Image Info' tag is image.jpg. Of course the image doesn't display in the preview.
Manually changing the URL to image.jpg successfully displays the image in the preview.
(Clicking browse server shows no files).

With the same settings in WA_Globals.php if I click 'Browse Server'and use the upload facility in the iRite Resources Browser the images is shown in the browser, but when clicked doesn't display in the preview.
The image is actually placed where I want it in image.jpg but the URL shown in Image Properties is image.jpg. Again if I manually change this to the actual URL of the image it displays.

Should files be uploaded via the 'Upload' tag or via 'Browse Sever'? or both? They seem to work differently.

Using $WAGLOBAL_Images_Folder = "/cms_images/"; doesn't change anything except that the URL in Image Properties becomes image.jpg.

Now when I amend the config.php file as described by SozoCreative the image is uploaded to the correct location but the code that appears in the Image Properties URL and is subsequently placed in the page is: "http://www.mysite.co.uk/../cms/cms_images/01_mirror.jpg".

The page renders ok in Firefox, Chrome and IE8 but not in IE6 I can only assume it's because of the '../' in the code.
Pasting 01_mirror.jpg directly in the address bars of Firefox, Chrome and IE8 displays the image and the URL is automatically altered to 01_mirror.jpg - IE6 doesn't do this, it displays page not found.

I would be grateful for any help anyone can give to help me to get this to work as it should - This is for a client and I really don't want to have them editing URLs or source code.

Thanks

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...