webgui/docs/templates.txt
2011-10-31 20:13:01 -07:00

165 lines
6.9 KiB
Text

This is a running list of template changes made during upgrades. If you have copied the default
templates, you will need to apply these changes manually to your copies.
8.0
* Account Macro template variables renamed:
account.url => account_url
account.text => account_text
* AdminToggle Macro template variables renamed:
toggle.url => toggle_url
toggle.text => toggle_text
7.10.22
* Thingy CSS file - root/import/thingy-templates/thingy.css
Add CSS to make sure that overflows are visible, to handle style that hide overflow by default.
7.10.18
* Collaboration System Default Notification Template /default_forum_notification
Replace table with divs to make inline replying easier.
7.10.15
* Gallery CSS - root/import/gallery-templates/gallery.css
Remove float:left on .wgAlbum.
* Email Receipt (Default) - shopping-cart-collateral-items/email-receipt-default
Added code to prevent links to items with bad skus to both templates.
7.10.14
* My Purchases Detail (Default) - shopping-cart-collateral-items/my-purchases-detail-default
* Email Receipt (Default) - shopping-cart-collateral-items/email-receipt-default
Added code to prevent links to items with bad skus to both templates.
7.10.13
* Cart (Default) - default-shopping-cart-template
In 7.10.7, hardcoded JavaScript was removed from the Cart code and migrated to the Cart template. The list of Javascript and files which are needed is below. Please add it to the Attachments or Extra Head Tags for any customized Cart templates.
^Extras(/yui/build/yahoo-dom-event/yahoo-dom-event.js);
^Extras(/yui/build/json/json-min.js);
^Extras(/yui/build/connection/connection-min.js);
^Extras(/underscore/underscore-min.js);
^Extras(/shop/cart.js);
7.10.11
* Default View Thing Data Template - templates/thingy-default-view-thing
Change how the title is rendered. If no fields are set to be displayed in the title, show the internationalized word View.
If fields are set, then display the viewScreenTitle variable instead.
7.10.9
* Underground style template CSS - style-underground/css/underground-webgui-css
Make labels render inline.
7.10.8
* Friend Manager view template - root/import/account/friendmanager/view
Add a div to hold the pagination.
* Event Template - root/import/calendar-templates/default-calendar-event
Add foreground/font color to the CSS for the details.
Move border property to the table instead of assigning it to the body of the page.
* EU VAX Template
Internationalized the text in the template.
* Calendar Event List template - root/import/calendar-templates/default-calendar-list-view
Only display changes in new months, not months AND years AND days.
7.10.4
* DataForm email template - default_email
Do HTML escaping on field values. Move table tags outside of the loops so only one table
is generated.
* Template Variable template
The URL for that template has been changed from "help" to "root/import/adminconsole/help", making
the short URL Help available for WebGUI content use.
* EMS Badge Listing template - root/import/ems/ems-badge-listing-default
Changed the javascript to use a custom formatter for the Badge price.
7.10.3
* Carousel Default Template - root/import/carousel/carousel-default
Add a height parameter to the template.
* survey.css
Removed relative positioning and offset from top.
* root/import/survey/surveyedit.css
Reexported the package from the default content due to potential issues with earlier upgrades
not installing correctly.
* root/import/workflow-activity-templates
Added a folder to hold the assorted Workflow Activity templates.
7.10.2
* The Make Page Printable template has changed (as per bug #11857). The HTML
is now consistent with other default Style templates. The Plain Black logo and
copyright info have been removed and a stylesheet was added to provide very
simple default formatting for text, header and footer (makepageprintable.css).
7.10.1
* Profile templates - root/import/account/profile/default-view-profile-template
- root/import/account/profile/profile-account-layout
Moved the "back to profile" link from the Profile View template to the Profile Layout template.
* Asset Report Template - asset-report/asset-report-default-template
Remove the empty template attachment
* Gallery Album Edit Template
Update the inline javascript in the script tag to make drag & drop sorting work in IE7
if (typeof Gallery == "undefined") {
Gallery = {};
Gallery.DDSorting = {};
}
Gallery.DDSorting.url = '<tmpl_var url escape="js">';
* Story Topic Template
Since topStory template variables are available all the time, manually add the topStory into the list of
stories when the topic is no viewed standalone. Also note the new template variables for the the delete
and edit icons for the top story.
<ul>
<tmpl_unless standAlone>
<li><tmpl_var topStoryDeleteIcon><tmpl_var topStoryEditIcon> <a href="<tmpl_var topStoryUrl>"><tmpl_var topStoryTitle></a></li>
</tmpl_unless>
<tmpl_loop story_loop>
* Thingy searchResults_json
This is a JSON-encoded version of searchResults_loop, which allows people to access Thingy search results
in Javascript/Flash/etc.. For example, you can use OpenFlashCharts2 (http://teethgrinder.co.uk/open-flash-chart-2)
and SWFObject to access the data and then display it as a pretty custom chart via the following:
<tmpl_if searchResult_loop>
<div id="chart-container">
<div id="chart">Loading..</div>
</div>
<script type="text/javascript">
function open_flash_chart_data() {
var data_json = "<tmpl_var searchResult_json ESCAPE=JS>";
var data = YAHOO.lang.JSON.parse(data_json);
var chart = {
elements: [
// populate dynamically from data object
]
};
return YAHOO.lang.JSON.stringify(chart);
}
// Embed the chart
swfobject.embedSWF(
'/path/to/open-flash-chart.swf', // url
'chart', // container element id
'100%', // width
'100%', // height
'9.0.0', // version
'/path/to/swfobject/expressInstall.swf', // expressInstall
{ loading: 'Loading...' }, // flashvars
{}, // params
{} // attributes
);
</script>
</tmpl_if>