diff --git a/lib/WebGUI/Help/Post.pm b/lib/WebGUI/Help/Post.pm index 7db22f38b..14ccc42ec 100644 --- a/lib/WebGUI/Help/Post.pm +++ b/lib/WebGUI/Help/Post.pm @@ -4,6 +4,20 @@ our $HELP = { 'post add/edit template' => { title => 'add/edit post template title', body => 'add/edit post template body', + related => [ + { + tag => 'template language', + namespace => 'Template' + }, + { + tag => 'post template variables', + namespace => 'Post' + }, + ] + }, + 'post template variables' => { + title => 'post template variables title', + body => 'post template variables body', related => [ { tag => 'template language', diff --git a/lib/WebGUI/i18n/English/Post.pm b/lib/WebGUI/i18n/English/Post.pm index 711386797..7ceba9e3f 100644 --- a/lib/WebGUI/i18n/English/Post.pm +++ b/lib/WebGUI/i18n/English/Post.pm @@ -145,6 +145,97 @@ A form that will set when the post stops being available. lastUpdated => 1111388442, }, + 'post template variables title' => { + message => q|Post Template Variables|, + lastUpdated => 1111253044, + }, + + 'post template variables body' => { + message => q|The following variables are available in all Post templates: +
+
+userId
+The User ID of the owner of the Post.
+
+
+user.isPoster
+A conditional that is true if the current user is the owner of this Post.
+
+
+userProfile.url
+A URL to the profile of the owner of the Post.
+
+
+dateSubmitted.human
+The date that the post was sumbitted, in a readable format.
+
+
+dateUpdated.human
+The date that the post was last updated, in a readable format.
+
+
+title.short
+The title of the Post, limited to 30 characters.
+
+
+content
+The content of the post, if a thread containing the Post exists.
+
+
+user.canEdit
+A conditional that is true if the user is adding a new Post, as opposed to
+editing an existing Post, and a thread containing the Post exists.
+
+
+delete.url
+A URL to delete this Post.
+
+
+edit.url
+A URL to edit this Post.
+
+
+status
+The status of this Post, typically "Approved", "Denied", or "Pending".
+
+
+approve.url
+The URL to approve this Post, if it's moderated.
+
+
+deny.url
+The URL to deny this Post, if it's moderated.
+
+
+reply.url
+The URL to reply to this Post and quote it in your reply.
+
+
+reply.withoutQuote.url
+The URL to reply to this Post without quoting it.
+
+
+url
+The URL for this Post.
+
+
+rating.value
+The current rating for this Post.
+
+
+rate.url.N
+URLs that are used to rate this post. N goes from 1 to 5.
+
+
+hasRated
+A conditional that is true if the user has already rated this Post.
+
+ +|, + lastUpdated => 1111446222, + }, + + }; 1;