67 lines
3.1 KiB
Text
67 lines
3.1 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.
|
|
|
|
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>
|
|
|