template variable breakout

This commit is contained in:
Colin Kuskie 2006-06-06 04:29:14 +00:00
parent c9b5852614
commit 9db9e6a7a4
6 changed files with 265 additions and 118 deletions

View file

@ -41,6 +41,28 @@ our $HELP = {
body => 'search template body',
fields => [
],
variables => [
{
'name' => 'form_header',
required => 1,
},
{
'name' => 'form_footer',
required => 1,
},
{
'name' => 'form_submit',
required => 1,
},
{
'name' => 'form_keywords',
required => 1,
},
{
'name' => 'result_set',
required => 1,
}
],
related => [
{
tag => 'asset fields',

View file

@ -57,6 +57,57 @@ our $HELP = {
body => '73',
fields => [
],
variables => [
{
'name' => 'channel.title'
},
{
'name' => 'channel.description'
},
{
'name' => 'channel.link'
},
{
'name' => 'rss.url',
'variables' => [
{
'name' => 'rss.url.0.9'
},
{
'name' => 'rss.url.0.91'
},
{
'name' => 'rss.url.1.0'
},
{
'name' => 'rss.url.2.0'
}
]
},
{
'name' => 'item_loop',
'variables' => [
{
'name' => 'site_title'
},
{
'name' => 'site_link'
},
{
'name' => 'new_rss_site'
},
{
'name' => 'title'
},
{
'name' => 'description'
},
{
'name' => 'link'
}
]
}
],
related => [
{
tag => 'syndicated content add/edit',

View file

@ -90,6 +90,43 @@ our $HELP = {
'ws client template' => {
title => '72',
body => '73',
variables => [
{
'name' => 'disableWobject'
},
{
'name' => 'results',
'variables' => [
{
'name' => 'numResults'
},
{
'name' => 'firstPage'
},
{
'name' => 'lastPage'
},
{
'name' => 'nextPage'
},
{
'name' => 'pageList'
},
{
'name' => 'previousPage'
},
{
'name' => 'multiplePages'
},
{
'name' => 'numberOfPages'
},
{
'name' => 'pageNumber'
}
]
}
],
fields => [
],
related => [

View file

@ -49,30 +49,35 @@ our $I18N = { ##hashref of hashes
context => q|hover help for search root|
},
'form_header' => {
message => q|HTML Code to begin the search form|,
lastUpdated => 1149567859,
},
'form_footer' => {
message => q|HTML Code to end the search form|,
lastUpdated => 1149567859,
},
'form_submit' => {
message => q|A button to allow the user to submit a search.|,
lastUpdated => 1149567859,
},
'form_keywords' => {
message => q|A form to let the user enter in keywords for the search.|,
lastUpdated => 1149567859,
},
'result_set' => {
message => q|Paginated search results with pagination controls.|,
lastUpdated => 1149567859,
},
'search template body' => {
message => q|<p>The following template variables are available for Search Asset templates. All of these variables are required.</p>
<p><b>form_header*</b><br />
HTML Code to begin the search form
</p>
<p><b>form_footer*</b><br />
HTML Code to end the search form
</p>
<p><b>form_submit*</b><br />
A button to allow the user to submit a search.
</p>
<p><b>form_keywords*</b><br />
A form to let the user enter in keywords for the search.
</p>
<p><b>result_set*</b><br />
Paginated search results with pagination controls.
</p>
|,
lastUpdated => 1142051703,
lastUpdated => 1149567912,
},
'add/edit title' => {

View file

@ -54,86 +54,94 @@ these unique properties:
|
},
'channel.title' => {
message => q|The title of this piece of syndicated content. This will be the same as the title of the Syndicated Content object when you're creating an aggregate feed.|,
lastUpdated => 1149567508,
},
'channel.description' => {
message => q|A description of the content available through this channel. This will be the same as the description of the Syndicated Content object when you're creating an aggregate feed.|,
lastUpdated => 1149567508,
},
'channel.link' => {
message => q|A URL back to the originating site of this channel. This variable *will not* exist when you're creating an aggregate feed, because there's no single channel to link to.|,
lastUpdated => 1149567508,
},
'rss.url' => {
message => q|This is the URL to use to get the contents of this Syndicated Content wobject as an RSS 2.0 feed. Additionally, you can specify RSS versions via the following template variables:|,
lastUpdated => 1149567508,
},
'rss.url.0.9' => {
message => q|The contents of this wobject as an RSS 0.9 feed.|,
lastUpdated => 1149567508,
},
'rss.url.0.91' => {
message => q|The contents of this wobject as an RSS 0.91 feed.|,
lastUpdated => 1149567508,
},
'rss.url.1.0' => {
message => q|The contents of this wobject as an RSS 1.0 feed.|,
lastUpdated => 1149567508,
},
'rss.url.2.0' => {
message => q|The contents of this wobject as an RSS 2.0 feed.|,
lastUpdated => 1149567508,
},
'item_loop' => {
message => q|A loop containing the data from this channel.|,
lastUpdated => 1149567508,
},
'site_title' => {
message => q|The title of the RSS feed this item comes from|,
lastUpdated => 1149567508,
},
'site_link' => {
message => q|Link to the source RSS feed.|,
lastUpdated => 1149567508,
},
'new_rss_site' => {
message => q|A "boolean" variable (suitable for using in a &lt;tmpl_if&gt; tag) that indicates we've started outputting items from a source RSS feed different than the previous item. This is most useful when you're viewing feeds in "grouped" mode- it gives you a hook to output <b>site_title</b> and <b>site_link</b> at the right time.|,
lastUpdated => 1149567508,
},
'title' => {
message => q|The title of a piece of content. If you're filtering on terms, this field will be inspected.|,
lastUpdated => 1149567508,
},
'description' => {
message => q|The description of the content. If you're filtering on terms, this field will be inspected as well.|,
lastUpdated => 1149567508,
},
'link' => {
message => q|A URL directly to the content of the item.|,
lastUpdated => 1149567508,
},
'72' => {
lastUpdated => 1047855526,
message => q|Syndicated Content Template|
},
'73' => {
lastUpdated => 1047855526,
message => q|The following are the template variables available to the Syndicated Content template.
<p><b>channel.title</b><br />
The title of this piece of syndicated content. This will be the same as the title of the Syndicated Content object when you're creating an aggregate feed.
</p>
<p><b>channel.description</b><br />
A description of the content available through this channel. This will be the same as the description of the Syndicated Content object when you're creating an aggregate feed.
</p>
<p><b>channel.link</b><br />
A URL back to the originating site of this channel. This variable *will not* exist when you're creating an aggregate feed, because there's no single channel to link to.
</p>
<p><b>rss.url</b><br />
This is the URL to use to get the contents of this Syndicated Content wobject as an RSS 2.0 feed. Additionally, you can specify RSS versions via the following template variables:
</p>
<div class="helpIndent">
<p><b>rss.url.0.9</b><br />
The contents of this wobject as an RSS 0.9 feed.
</p>
<p><b>rss.url.0.91</b><br />
The contents of this wobject as an RSS 0.91 feed.
</p>
<p><b>rss.url.1.0</b><br />
The contents of this wobject as an RSS 1.0 feed.
</p>
<p><b>rss.url.2.0</b><br />
The contents of this wobject as an RSS 2.0 feed.
</p>
</div>
lastUpdated => 1149567527,
message => q|<p>The following are the template variables available to the Syndicated Content template:</p>
<p>Additionally, RSS feeds are transformed into HTML via XSLT stylesheets for "friendly" in-browser viewing. These XSLT stylesheets are stored in the WebGUI collateral system as snippets.
</p>
<p><b>item_loop</b><br />
A loop containing the data from this channel.
</p>
<div class="helpIndent">
<p><b>site_title</b><br />
The title of the RSS feed this item comes from
</p>
<p><b>site_link</b><br />
Link to the source RSS feed.
</p>
<p><b>new_rss_site</b><br />
A "boolean" variable (suitable for using in a &lt;tmpl_if&gt; tag) that indicates we've started outputting items from a source RSS feed different than the previous item. This is most useful when you're viewing feeds in "grouped" mode- it gives you a hook to output <b>site_title</b> and <b>site_link</b> at the right time.
</p>
<p><b>title</b><br />
The title of a piece of content. If you're filtering on terms, this field will be inspected.
</p>
<p><b>description</b><br />
The description of the content. If you're filtering on terms, this field will be inspected as well.
</p>
<p><b>link</b>
A URL directly to the content of the item.
</p>
</div>|,
},
|,
},
'displayModeLabel' => {
lastUpdated => 1047855526,

View file

@ -216,44 +216,68 @@ property allows you to override the default MIME type for this page.|,
lastUpdated => 1033575504
},
'73' => {
message => q|This is the list of template variables available for Web Services Client templates.
'disableWobject' => {
message => q|If the page was called with a form param of disableWobjects, this variable will
be set to true.|,
lastUpdated => 1149568071,
},
<p><b>disableWobject</b><br />
If the page was called with a form param of disableWobjects, this variable will
be set to true.
</p>
<p><b>results</b><br />
This loop contains all the results from
'results' => {
message => q|This loop contains all the results from
the SOAP call. Within the loop, you may access specific data elements by the
names set for them by the SOAP server (i.e. perhaps "localTime" for a time query). In addition, there are a number of special template variables:
</p>
names set for them by the SOAP server (i.e. perhaps "localTime" for a time query). In addition, there are a number of special template variables:|,
lastUpdated => 1149568071,
},
<div class="helpIndent">
'numResults' => {
message => q|Number of rows found by the client, if an array was returned.|,
lastUpdated => 1149568071,
},
<p><b>numResults</b><br />
Number of rows found by the client, if an array was returned.</p>
'firstPage' => {
message => q|Link to first page in a paginated set.|,
lastUpdated => 1149568071,
},
<p><b>firstPage</b><br />Link to first page in a paginated set.</p>
'lastPage' => {
message => q|Link to last page in a paginated set.|,
lastUpdated => 1149568071,
},
<p><b>lastPage</b><br />Link to last page in a paginated set.</p>
'nextPage' => {
message => q|Link to next page in a paginated set.|,
lastUpdated => 1149568071,
},
<p><b>nextPage</b><br />Link to next page in a paginated set.</p>
'pageList' => {
message => q|List of all pages in a paginated set.|,
lastUpdated => 1149568071,
},
<p><b>pageList</b><br />List of all pages in a paginated set.</p>
'previousPage' => {
message => q|Link to previous page in a paginated set.|,
lastUpdated => 1149568071,
},
<p><b>previousPage</b><br />Link to previous page in a paginated set.</p>
'multiplePages' => {
message => q|Boolean indicating multiple pages in a paginated set.|,
lastUpdated => 1149568071,
},
<p><b>multiplePages</b><br />Boolean indicating multiple pages in a paginated set.</p>
'numberOfPages' => {
message => q|Number of pages in a paginated set.|,
lastUpdated => 1149568071,
},
<p><b>numberOfPages</b><br />Number of pages in a paginated set.</p>
'pageNumber' => {
message => q|Current page number in a paginated set.|,
lastUpdated => 1149568071,
},
<p><b>pageNumber</b><br />Current page number in a paginated set.
</p>
</div>|,
lastUpdated => 1111122637
'73' => {
message => q|<p>This is the list of template variables available for Web Services Client templates.</p>
|,
lastUpdated => 1149568096
},
'24' => {