[Solved] [Documentation] Smarty Templates default.master.tpl usage question.
Can anyone shed some light? If you know the answer to anyone one of these - please reply.
items like this
{if $User.CountNotifications}
is this referencing the $Session object, $Sender object, or getting info directly from User table? Can anybody shed light on this?
{if CheckPermission('Garden.Settings.Manage')}
Can I use all functions like this, if not where are the available functions read from?
{if !$User.SignedIn}
once again - what is the $User referencing exactly?
{event name="BeforeSignInLink"}
how are these references used and integrated into app.
where would call this event and what would be the procedure?
if I wanted to pick up info from a particular table or a unique object how would the call be made in Smarty or would you have to write a function?
is this file actually called somewhere. it is located in library/vendors/SmartyPlugins.
block.permission.php
modifier.date.php
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Answers
Time to file this one in the unanswered questions. My batting average for answered questions - approaching 0.
either the question
- doesn't make sense
- nobody knows
- nobody cares
- somebody knows but hasn't provided any info.
other variables found
{$BodyID}
{$BodyClass}
{$User.Name}
{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
how to make a comment in smarty {* the comment *}
more tags:
to display photo
{photo_link}
to display logo
{logo}
others
{user_link}
{drafts_link}
{nomobile_link}
{category_link}
if anyone wants to add these to
http://vanillawiki.homebrewforums.net/index.php/Using_Smarty_with_Vanilla
feel free.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
solved @underdog.
question 1 somewhat - it is an associative array of 4 items retrieved through the ether - if you find out where the array is created.
to print values for $User array.
{foreach key=key item=item from=$User}
{$key} - {$item}
{/foreach}
results
Name - Peregrine
CountNotifications - 0
CountUnreadConversations - 1
SignedIn - 1
so you can use
{$User.Name}
{$User.CountNotifications}
{$User.CountUnreadConversations}
{$User.SignedIn}
How to find all Smarty variables known to vanilla-kind.
also see
http://vanillaforums.org/discussion/comment/162608/#Comment_162608
http://vanillawiki.homebrewforums.net/index.php/Using_Smarty_with_Vanilla
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.