more Macro help work

This commit is contained in:
Colin Kuskie 2005-04-03 23:21:02 +00:00
parent 30b05c41c4
commit 7b6c7e5af0
5 changed files with 33 additions and 14 deletions

View file

@ -8,7 +8,11 @@ our $HELP = {
related => [ related => [
{ {
tag => 'macros using', tag => 'macros using',
namespace => 'Macros' namespace => 'Macros',
},
{
tag => 'template language',
namespace => 'Template',
}, },
] ]
}, },

View file

@ -14,11 +14,11 @@ our $I18N = {
This macro is for displaying Areas of Interest Hits, which is based on passive profiling This macro is for displaying Areas of Interest Hits, which is based on passive profiling
of which wobjects are viewed by users, on a per user basis. The macro takes two arguments, of which wobjects are viewed by users, on a per user basis. The macro takes two arguments,
a metadata property and metadata value, and returns how many times the current user has a metadata property and metadata value, and returns how many times the current user has
viewed content with that property and value.<br> viewed content with that property and value.<p>
&#94;AOIHits(contenttype,sport); would display 99 if this user has looked at content that was tagged "contenttype = sport" 99 times. &#94;AOIHits(contenttype,sport); would display 99 if this user has looked at content that was tagged "contenttype = sport" 99 times.
|, |,
lastUpdated => 1112466919, lastUpdated => 1112567357,
}, },
}; };

View file

@ -11,7 +11,7 @@ our $I18N = {
message => q| message => q|
<p> <p>
<b>&#94;AOIRank();</b><br> <b>&#94;AOIRank(<i>metadata property</i>, [<i>rank</i>]);</b><br>
This macro is for displaying Areas of Interest Rankings, which is based on passive profiling This macro is for displaying Areas of Interest Rankings, which is based on passive profiling
of which wobjects are viewed most frequently by users, on a per user basis. The macro of which wobjects are viewed most frequently by users, on a per user basis. The macro
takes up to two arguments, a metadata property and the rank of the metadata value to takes up to two arguments, a metadata property and the rank of the metadata value to
@ -20,7 +20,7 @@ be returned. If the rank is left out, it defaults to 1, the highest rank.<br>
&#94;AOIRank(contenttype, 2); would return the second highest ranked value for contenttype. &#94;AOIRank(contenttype, 2); would return the second highest ranked value for contenttype.
|, |,
lastUpdated => 1112466919, lastUpdated => 1112560105,
}, },
}; };

View file

@ -7,9 +7,19 @@ our $I18N = {
}, },
'macros list body' => { 'macros list body' => {
message => q|<P>These Macros are available for use on your site:</P>|, message => q|<P>These Macros are available for use on your site. The set of available Macros is defined in the WebGUI configuration file:</P>|,
context => 'Content for dynamically generated macro list', context => 'Content for dynamically generated macro list',
lastUpdated => 1112395932, lastUpdated => 1112560683,
},
'macro enabled' => {
message => q|This macro is enabled in the WebGUI configuration file and can be used on this site.|,
lastUpdated => 1046656837,
},
'macro disabled' => {
message => q|This macro is not enabled in the WebGUI configuration file and cannot be used on this site.|,
lastUpdated => 1046656837,
}, },
'macros using title' => { 'macros using title' => {

View file

@ -3,31 +3,36 @@ package WebGUI::i18n::English::a_account;
our $I18N = { our $I18N = {
'account title' => { 'account title' => {
message => q|Account Macro|, message => q|My Account Macro|,
lastUpdated => 1112466408, lastUpdated => 1112466408,
}, },
'account body' => { 'account body' => {
message => q| message => q|
<b>&#94;a; or &#94;a(); - My Account Link</b><br> <b>&#94;a();</b><br>
A link to your account information. In addition you can change the link text by creating a macro like this <b>&#94;a("Account Info");</b>. If you specify "linkonly" in the first parameter then only the URL will be returned. Also, you can specify the name of a template in the Macro/a_account namespace as the second parameter to override the default template. <b>&#94;a([<i>link text</i>], [<i>template name</i>]);</b><br>
<p> This macro creates a link to the current user's account information. The
Macro takes two optional arguments, the text that is displayed with the
link and a template from the Macro/a_account namespace to be used to
display the link and text. If the <i>link text</i> is set to the word
"linkonly" then only the URL will be returned.<p>
The following is a list of variables available in the template: The following is a list of variables available in the template:
<p/> <p/>
<b>account.url</b><br/> <b>account.url</b><br/>
The URL to the account page. The URL to the account page.
<p/> <p/>
<b>account.text</b><br/> <b>account.text</b><br/>
The translated label for the account link, or the text that you supply to the macro. The translated label for the account link, or the text that you supply to the macro.
<p/> <p/>
<b>NOTES:</b> You can also use the special case &#94;a(linkonly); to return only the URL to the account page and nothing more. Also, the .myAccountLink style sheet class is tied to this macro. <b>NOTES:</b> The .myAccountLink style sheet class is tied to this macro.
<p> <p>
|, |,
lastUpdated => 1112466919, lastUpdated => 1112560585,
}, },
}; };