Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

[Documentation] Accessing the PHP equivalents of smarty theme tokens, i.e. {head}

edited March 2012 in Vanilla 2.0 - 2.8


I am having trouble finding out how I can access dynamic values in my PHP template. In the smarty version I can use tokens like {head}, {BodyClass}, {BodyID}, {asset name="Content"}, etc. I would like to access these same values provided by Vanilla in my PHP template. If that's not possible, I'd be happy to learn how to create custom tokens and go back to smarty.

All I need are some documents :)

Thanks for your time in helping me with this obstacle.

  • Chris


  • ToddTodd Chief Product Officer Vanilla Staff

    Hope this helps:


    {asset name="xxx"}










  • That's perfect, thanks Todd.

  • @Todd, what about:


    And any other Smarty(pants) tag that's been defined?

Sign In or Register to comment.