Paths of included sites
hi there
i created site called "index.php" in root folder. in there's menu 5 categories (home, school, contact, photos, downloads). every category there's folder on computer ([root folder]/home, [root folder]/school, [root folder]/contact, [root folder]/photos, [root folder]/downloads.
the "index.php" in root folder serves framework. menu links define categories (?&category=home, ?&category=school, ...). this, index.html (school/index.html, contact/index.html, etc...) included main page, have edit htmls in appropriate folders change content.
this site structure:
[root folder]
|
|- index.php (every subpage included file)
+ /school
| |- index.html (a subpage)
+/contact
| |- index.html
| (...)
+ /img (image folder)
| |- image1.jpg
| |- image2.jpg
| |- (...)
now problem: css files , image folder stored in root folder. dw html-files stored in sub-folders. if page compiled user's view, image- , css-paths have this: "img/image.jpg", because in index.php of root folder. if edit example index.html stored in "school" folder, dw inserts images paths "../img/image.jpg", logical. have delete "../" before path manually, pictures aren't displayed anymore. also, have append css-file in every subpage use in dw, although included in index.php in root folder.
but want, editing purposes, dw show me pictures , write paths "img/image1.jpg". how can tell dw subpage-file index.html in root folder (because included there)???
thanks lot answer in advance.
i created site called "index.php" in root folder. in there's menu 5 categories (home, school, contact, photos, downloads). every category there's folder on computer ([root folder]/home, [root folder]/school, [root folder]/contact, [root folder]/photos, [root folder]/downloads.
the "index.php" in root folder serves framework. menu links define categories (?&category=home, ?&category=school, ...). this, index.html (school/index.html, contact/index.html, etc...) included main page, have edit htmls in appropriate folders change content.
this site structure:
[root folder]
|
|- index.php (every subpage included file)
+ /school
| |- index.html (a subpage)
+/contact
| |- index.html
| (...)
+ /img (image folder)
| |- image1.jpg
| |- image2.jpg
| |- (...)
now problem: css files , image folder stored in root folder. dw html-files stored in sub-folders. if page compiled user's view, image- , css-paths have this: "img/image.jpg", because in index.php of root folder. if edit example index.html stored in "school" folder, dw inserts images paths "../img/image.jpg", logical. have delete "../" before path manually, pictures aren't displayed anymore. also, have append css-file in every subpage use in dw, although included in index.php in root folder.
but want, editing purposes, dw show me pictures , write paths "img/image1.jpg". how can tell dw subpage-file index.html in root folder (because included there)???
thanks lot answer in advance.
only use root relative paths inside of included file.
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment