Tag for displaying domain name?
Permalink
I know other work arounds...but I was wondering if there was a concrete5 tag for displaying the domain name that the CMS is currently installed on?
The problem I'm having is that my toolbar links are linking to pages such as "/about" when a 3rd party is linked to a page such as "www.mysite.com/home" and the "/about" toolbar link is clicked, then they are directed to "www.mysite.com/home/about" instead of "www.mysite.com/about".
I know I can simple mod the links to include my domain name below, but if the CMS was ever moved to a new domain this would create an issue. Is there anything that concrete5 can do? Or should I just implement a pure PHP work around?
The problem I'm having is that my toolbar links are linking to pages such as "/about" when a 3rd party is linked to a page such as "www.mysite.com/home" and the "/about" toolbar link is clicked, then they are directed to "www.mysite.com/home/about" instead of "www.mysite.com/about".
I know I can simple mod the links to include my domain name below, but if the CMS was ever moved to a new domain this would create an issue. Is there anything that concrete5 can do? Or should I just implement a pure PHP work around?
Thanks Scott, this was my back up :)
alternatively if you have a page you can do this:
Same thing more or less.
-Scott
$nh = Loader::helper('navigation); $url = $nh->getLinkToCollection(Page::getByPath($yourPath),true,false); print $url;
Same thing more or less.
-Scott
-Scott