Table of contents
No headers// Define Product Variables
var product = $product ? $product : "AutoCAD";
var title = $title ? $title : "" ;
var titlecss = $titlecss ? $titlecss : "";
var summary = $summary ? $summary : "" ;
var summarycss = $summarycss ? $summarycss : "";
wiki.template('autodesk/controls/contentCacheHandler',
{
'template':'autodesk/gateway/languageNewCache',
'templateargs':{
'product': product,
'title' : title,
'titlecss' : titlecss,
'summary' : summary,
'summarycss' : summarycss
}
// ,'nocache':false
}
);
/*
<div class="adsk-gateway-overview adsk-gateway">
var img = "";
var style="";
foreach (var file in page.files)
{
foreach (var x in page.files)
{
if (string.contains(x.name,"gateway"))
{
let img = x.uri;
}
}
}
if (img == "")
{
let img = "/skins/beechbeta/autodesk/gateway_blank.gif";
}
var style = ( "background-image:url(" .. img .. ");" );
<div class="adsk-gateway-picture" style=(style)>
<h2 style=(titlecss)>web.html(product)</h2>
<div class="summary" style=(summarycss)>web.html(summary)</div>
</div>
</div>
<table class="gateway-structure" style="padding:0;">
<tr>
<td colspan="2">
<div class="gateway-col-1-2">
<h2 class="nobackground">"Community Learning"</h2>
wiki.template("Autodesk/gateway/communityLearning");
</div>
</td>
<td>
<div class="gateway-col-3 gateway-mostpopular">
<h2>"Most Popular"</h2>
wiki.template('Autodesk/controls/popularList');
</div>
</td>
</tr>
// Second Row
<tr>
<td colspan="2">
<div class="gateway-col-1-2">
<h2>"Newest " .. product .. " Videos"</h2>
var args = {
limit: 4
};
wiki.template("Autodesk/gateway/videoNew", args);
</div>
</td>
<td>
<div class="gateway-col-3">
<h2>"Recent Updates"</h2>
wiki.template("Autodesk/gateway/recentPages");
</div>
</td>
</tr>
// removing third row at Autodesk's request
/*
// Third Row
<tr>
<td>
<div class="gateway-col-1">
<h2>"Top Contributors"</h2>
wiki.template("Autodesk/controls/contributorList");
</div>
</td>
<td>
<div class="gateway-col-2">
<h2>product;" Statistics"</h2>
<div class="gateway-block-wrap">
wiki.template("Autodesk/gateway/productStatistics");
</div>
</div>
</td>
<td>
<div class="gateway-col-3">
<h2>"Autodesk Discussion Feed"</h2>
<div class="gateway-block-wrap">
var feed = $feed ?? "http://feeds.autodesk.com/autodesk/rss/board?board.id=24";
var limit = $limit ?? 5;
let feed = web.xml(feed);
var cnt = 0;
foreach (var x in xml.select(feed, '//item'))
{
var title = xml.text(x,'.//title');
var url = xml.text(x,'.//link');
<div class="gateway-page-rating">
<a href=(url)>title</a>
</div>
let cnt = (cnt + 1);
if (cnt >= limit)
{
break;
}
}
</div>
</div>
</td>
</tr>
</table>