Forums

This topic is locked

Any one using mambo,Help with Directory Structure

Posted 14 Feb 2004 07:15:29
1
has voted
14 Feb 2004 07:15:29 jae jae posted:
Hello. I am using mambo and the mambo template extension for dreamweaver. How ever my problem is not creating templates. Its viewing images while creating templates. I have mambo running on another computer in my house acting as a server. On that server I am running latest php version. apache latest version and mysql latest version. In order for mambo to view images for its templates it looks for a folder called templates inside the site directory in my case htdocs/mambo/. the html would look like this <img src=”templates/template01/images/image.gif”> which works.


But I am trying to work on building my template on a local computer. So I set up a local site and connect to the remoter server computer through ftp. Everything is fine for the connection. But when I insert images either from a local folder or get files from the remote server dreamweaver inserts the code for the image like this <img src=”/templates/template01/images/image.gif”> if you notice the extra / in front of the templates directory which works fine inside of dreamweaver but when uploading the files back to the remote server the images for the templates I have made do not work because the directory structure is not the same it has the extra / infront of the templates directory. But if I remove it they work for the remote directory

Things I have tried. While working in dreamweaver on my local computer I tried to view a template from the remote server(downloaded all files and directories) to local computer in live data view thinking that dreamweaver would connect to the remote server and bring back the images but that did not work. I also tried this tutorial from www.miro.com.au/# who makes a mambo CMS extension but I am not concerened with the extension its the images they explain exactly what I am trying to do with a directory structure set up on a local computer but it does not work and I a know I am not crazy and have tried the directory part of the tutorial time after time. I am hoping that when I upload my template after building it inside dreamweaver I dont have to go back and edit every image tag and remove the / from infront of the image url

Any help would be greatly appreciated.

Reply to this topic