I'm aware that $front_page
is a variable used in page.tpl, but is there a way to use it (or something similar other than a direct link) to print the index url in a node.tpl?
Add a comment
|
1 Answer
Absolutely:
function MYTHEME_preprocess_node(&$vars) {
$vars['front_page'] = url();
}
-
Brilliant, works perfectly. Thank you very much! Do you have any tip on where I can read up on how this works in general?– LennyDec 11, 2015 at 9:43