more Macro help work
This commit is contained in:
parent
30b05c41c4
commit
7b6c7e5af0
5 changed files with 33 additions and 14 deletions
|
|
@ -8,7 +8,11 @@ our $HELP = {
|
||||||
related => [
|
related => [
|
||||||
{
|
{
|
||||||
tag => 'macros using',
|
tag => 'macros using',
|
||||||
namespace => 'Macros'
|
namespace => 'Macros',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag => 'template language',
|
||||||
|
namespace => 'Template',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
^AOIHits(contenttype,sport); would display 99 if this user has looked at content that was tagged "contenttype = sport" 99 times.
|
^AOIHits(contenttype,sport); would display 99 if this user has looked at content that was tagged "contenttype = sport" 99 times.
|
||||||
|
|
||||||
|,
|
|,
|
||||||
lastUpdated => 1112466919,
|
lastUpdated => 1112567357,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ our $I18N = {
|
||||||
message => q|
|
message => q|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>^AOIRank();</b><br>
|
<b>^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>
|
||||||
^AOIRank(contenttype, 2); would return the second highest ranked value for contenttype.
|
^AOIRank(contenttype, 2); would return the second highest ranked value for contenttype.
|
||||||
|
|
||||||
|,
|
|,
|
||||||
lastUpdated => 1112466919,
|
lastUpdated => 1112560105,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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' => {
|
||||||
|
|
|
||||||
|
|
@ -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>^a; or ^a(); - My Account Link</b><br>
|
<b>^a();</b><br>
|
||||||
A link to your account information. In addition you can change the link text by creating a macro like this <b>^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>^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 ^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,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue