Citytech Tester Posted June 12, 2015 Posted June 12, 2015 Hello all, Is there any way in processwire so that i can get the wesite url dynamically in template page.? Thanks
Christophe Posted June 12, 2015 Posted June 12, 2015 Hello, Do you mean something like (php short tag(s) version)?: <a href="<?=$config->urls->root?>"><?=$pages->get('/')->title?></a> Edit: Also: <a href="<?=$pages->get('/')->url?>"><?=$pages->get('/')->title?></a> Or $homepage = $pages->get('/'); and <a href="<?=$homepage->url?>"><?=$homepage->title?></a> 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now