Smarty tag for discussion button? (2.1b)
Hi again, Vanilla sweethearts. ^_^
I've successfully replaced the sidebar in my upcoming 2.1b theme, but I'm still missing one component for my custom menu, namely the 'new discussion' button. Everything else is in place. So I'm wondering, is there some kind of Smarty tag I add to my default.master.tpl that would sort this?
Cheers.
Best Answers
-
Tama ✭✭✭
Taken from Smarty Debug
NewDiscussionModule => NewDiscussionModule Object (11)
->DefaultButton = false
->CssClass = "Button Action Big Primary"
->QueryString = ""
->Buttons = Array (0)
->AssetName = ""
->Data = Array (0)
->Visible = true
->EventArguments = Array (0)
->Returns = Array (0)
->HandlerType = "NORMAL"
->FireAs = nullI presume you would use
{module name="NewDiscussionModule"}
There was an error rendering this rich post.
3 -
peregrine MVP
add {debug} in your default.master.tpl
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
3 -
peregrine MVP
I also do this when not debugging - so i don't have to remember.
{*debug*)
and leave it permanently in the theme
and then just remove the * - which means comment in smartyese
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
3
Answers
Taken from Smarty Debug
I presume you would use
{module name="NewDiscussionModule"}
There was an error rendering this rich post.
Yep, that did the trick! Thanks a lot.
@Tama, mind posting how to view SMARTY debug info? I think this would be helpful for the wiki: http://vanillawiki.homebrewforums.net/index.php/Using_Smarty_with_Vanilla
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
add {debug} in your default.master.tpl
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I also do this when not debugging - so i don't have to remember.
{*debug*)
and leave it permanently in the theme
and then just remove the * - which means comment in smartyese
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.