Relative Path Question

Permalink
Hi
I have created a navigation menu using scrapbook so that it can be easily added to pages and combine internal and external links.

My question is how can I link to pages in my Concrete site so that no matter where the installation is it will continue to link properly? What PHP code would I need to call a specific page in Concrete?

Many thanks!

Chico

 
jbx replied on at Permalink Reply
jbx
but it seems quite simple...
When you add a new page in Concrete, you get a path to that page. So if you create an About Us page, it will have an alias of about_us. In your nav, you then simply link to /about_us and that will work regardless of the domain.

Also, have you looked at the autonav block? This can usually create all your navigation for you!
frz replied on at Permalink Reply
frz
if you use the navigation blocks and the concrete5 toolbar in the content block, you shouldn't have any problem moving the site. Update /config/site.php and your links will update as well.