Forum Moderators: coopster

Message Too Old, No Replies

paths in menu include

from DW library items to php includes

         

railthinner

10:04 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



Hi,

I know the topic of includes has been discussed a lot but I can't find an answer to my exact issue.

I've been using Dreamweaver library items and templates for a while and am getting sick of having to upload all of my pages when I change one item in my sites menu so I've decided to switch to php includes but am running into a couple issues.

1. I've tested a page with my menu pulled in via an include with no problems but I've always used relative URLs in my menu. With DW library items it would always update the path (../../../) depending on where the page is that contains the menu. How can I get php to do this?

2nd. If I have to use absolute URLs how can I test my site locally?

thanks, any help appreciated.

gettopreacherman

2:26 am on Feb 23, 2005 (gmt 0)

10+ Year Member



You can still use relative paths...

img src="images/*.jpg"

should work just fine. you may have to play with the extensions and '/' a bit depending on how you set up your calls, but you should still be able to use them.