Accessing s9y variables in Smarty
Posted: Sun Sep 18, 2005 3:36 am
Hi,
maybe I'm out of practise and this is just a stupid question but I need to know this.
I try to insert a banner display method into my blog and therefore I need to know how to access s9y's variables within Smarty. I know that usually in a PHP script I can access them with $serendipity['serendipityPath'] or $serendipity['fetchLimit']. According to Smarty's documentation I could use $serendipity.fetchLimit for associative variables. But nothing is displayed.
Another issue is the access for those variables within Smarty plugins. My plan is to write a Smarty function for displaying banners and therefore I need path names, for example. I could use hardcoded paths, but this would be amazing bad programming style.
Any hints or tips?
maybe I'm out of practise and this is just a stupid question but I need to know this.
I try to insert a banner display method into my blog and therefore I need to know how to access s9y's variables within Smarty. I know that usually in a PHP script I can access them with $serendipity['serendipityPath'] or $serendipity['fetchLimit']. According to Smarty's documentation I could use $serendipity.fetchLimit for associative variables. But nothing is displayed.
Another issue is the access for those variables within Smarty plugins. My plan is to write a Smarty function for displaying banners and therefore I need path names, for example. I could use hardcoded paths, but this would be amazing bad programming style.
Any hints or tips?