Most assets call processTemplate to do their template processing. Inside
of processTemplate, there is a call to $self->get which adds all the asset properties to the list of template variables. Sometimes they duplicate entries in the www_ method (like view). Sometimes they're not interesting, like templateId, but they're still valid template variables. I'm going to start a new template variable entry for each asset that will just contain those variables. Any www_ method calling processTemplate can then include them via ISA into their list of template variables.
This commit is contained in:
parent
4ed1f2f30e
commit
c867f9eadb
7 changed files with 139 additions and 32 deletions
|
|
@ -21,6 +21,21 @@ our $I18N = {
|
|||
lastUpdated => 1146455970
|
||||
},
|
||||
|
||||
'cacheTimeout' => {
|
||||
message => q|The amount of time this article will be cached.|,
|
||||
lastUpdated => 1164841027
|
||||
},
|
||||
|
||||
'templateId' => {
|
||||
message => q|The Id of the template used to display this Asset.|,
|
||||
lastUpdated => 1164841027
|
||||
},
|
||||
|
||||
'storageId' => {
|
||||
message => q|The Id of the storage object for this Asset that is used to store any attachments.|,
|
||||
lastUpdated => 1164841027
|
||||
},
|
||||
|
||||
'71' => {
|
||||
message => q|<p>Articles are the Swiss Army knife of WebGUI. Most pieces of static content can be added via the Article. Articles are Wobjects, so they inherit the properties of both Wobjects and Assets.</p>
|
||||
|
||||
|
|
@ -60,6 +75,17 @@ use templates from the "page" namespace.|,
|
|||
lastUpdated => 1119066250
|
||||
},
|
||||
|
||||
'article asset template variables title' => {
|
||||
message => q|Article Asset Template Variables|,
|
||||
lastUpdated => 1164841146
|
||||
},
|
||||
|
||||
'article asset template variables body' => {
|
||||
message => q|Every asset provides a set of variables to most of its
|
||||
templates based on the internal asset properties. Some of these variables may
|
||||
be useful, others may not.|,
|
||||
lastUpdated => 1164841201
|
||||
},
|
||||
|
||||
'28' => {
|
||||
message => q|View Responses|,
|
||||
|
|
|
|||
|
|
@ -70,24 +70,34 @@ our $I18N = {
|
|||
lastUpdated => 1149392729,
|
||||
},
|
||||
|
||||
'eventStartDate' => {
|
||||
message => q|The date and time this event starts as an epoch.|,
|
||||
lastUpdated => 1164744850,
|
||||
},
|
||||
|
||||
'start.date' => {
|
||||
message => q|The date this event starts.|,
|
||||
lastUpdated => 1149392729,
|
||||
message => q|The date this event starts in the user's default date format.|,
|
||||
lastUpdated => 1164744850,
|
||||
},
|
||||
|
||||
'start.time' => {
|
||||
message => q|The time this event starts.|,
|
||||
lastUpdated => 1149392729,
|
||||
message => q|The time this event starts in the user's default time format.|,
|
||||
lastUpdated => 1164744852,
|
||||
},
|
||||
|
||||
'eventEndDate' => {
|
||||
message => q|The date and time this event ends as an epoch.|,
|
||||
lastUpdated => 1164744850,
|
||||
},
|
||||
|
||||
'end.date' => {
|
||||
message => q|The date this event ends.|,
|
||||
lastUpdated => 1149392729,
|
||||
message => q|The date this event ends in the user's default date format.|,
|
||||
lastUpdated => 1164744853,
|
||||
},
|
||||
|
||||
'end.time' => {
|
||||
message => q|The time this event ends.|,
|
||||
lastUpdated => 1149392729,
|
||||
message => q|The time this event ends in the user's default time format.|,
|
||||
lastUpdated => 1164744855,
|
||||
},
|
||||
|
||||
'end.label' => {
|
||||
|
|
|
|||
|
|
@ -530,7 +530,13 @@ The title of an individual event.
|
|||
'507' => {
|
||||
'lastUpdated' => 1108397891,
|
||||
'message' => 'Calendar Scope'
|
||||
}
|
||||
},
|
||||
|
||||
'pagination.pageCount.isMultiple' => {
|
||||
message => q|Calendar Scope|,
|
||||
lastUpdated => 1108397891,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue