raintpl3
raintpl3 copied to clipboard
Call function simplest syntax
Hello i have the function permalink and i want to call this like the following example
example a href="{permalink:(1)}">link /a or a href="{$permalink:(1)}">link /a
it is possible?
function permalink($id){
// do something...
return $id; // return something...
}
When they have added #167, you can use {1|permalink}
If you want a dynamic function call, you can just use a variable:
<a href="{$post_id|permalink}">link</a>