Dreamweaver CS5

Permalink
None of the links are working. I get a message when checking that says 'links to files not found on local disk'. I have checked rechecked all the files are there but still get message. Can someone assists please.

Thanks

 
jordanlev replied on at Permalink Reply
jordanlev
Dreamweaver outputs static HTML files. Concrete5 on the other hand is a dynamic system where pages can be added, removed, etc. So there is some work that needs to be done to go from Dreamweaver output to C5 theme templates.

Depending on where these links are in your page, there's a few ways to do this.

If it's just part of some page content, then what you would do is add a content block to the page (this is after the site is up and you're logged into C5). When editing the content block, there's a link at the top of the window for "Insert Link to Page", which lets you choose a page from the sitemap.

If this is a navigation menu, well that's a bit more of a complicated topic, but basically you want to use the Autonav block and then change your CSS to fit within the Autonav block's HTML (use "View Source" to see the HTML it outputs on your page after you've added the block and exited edit mode).

If this is a link that's hard-coded into your template though, you need to use the "View::url()" function. First get the path of the page you want to link to by going to that page in C5 and clicking "Edit Page" and then clicking "Properties" and then clicking the "Page Paths and Location" tab -- the path is what's entered into the textbox.

Now that you know the path to the page you want to link to, you pass that to the View::url function to link to it. For example, if the path was "about/people", you'd use this code:
<a href="<?php echo View::url('about/people') ?>">Click Here</a>


Hope that helps!