1
XOOPS templates have a great usage of smarty.
What is the technical reason that smarty tags will only work from certain files and not others?
For example:
<{$block.lang_username}>
does not work from theme.html
or
why won't xoImgUrl or xoops_slogan display in the site-redirect and site_closed templates.
Same happens with lots of other smarty.
As I don't know much of the usage of smarty, my question is: Why does smarty tags functions display from certain files and not others.
Can't there be a file in the system that reads all the available smarty tags available in the whole core and modules and installed and make them execute from any other template available?
I've seen how Kris_fr has done hacking a core file, making smarties available to the theme.html. That is a solution.
But can't there be another way that all of the smarty tags found in your XOOPS (core + modules), can be read from any .html template? ...from a simple file that says something like: find all smarty and include them in functions.php (if that is the file that makes the executing of smarty from any .html template file)?
Or is smarty in fact just limited to be applied to certain files?