File:cn/content.htm
Method:map.get(key,default)
content??get
类型不正确
cn/xmls/news.xmls
...in(@Title,-,$shell.getData(metaTitle));
$return($empty);
}

//正文
$sub contentView(PageName){
@querynew=$query(content,content);
@querycat=$query(catalog,content);
@querycat[PageName]=@PageName;
@CatalogId=@querycat.scalar(['CatalogId'],['{*PageName =} and {*AreaId = $shell.getData(cn)}']);
@querynew[CatalogId]=@CatalogId;
@Body=@querynew.scalar(Body,['Status>0 and {*AreaId = $shell.getData(cn)} and {*CatalogId =}']);
$if(!@Body){
@Body=no data;
}
$return(@Body);
}

//列表
$sub c
ontentList(countc,listFormat,pageFormat){
@row=$map();
@querynew=$query(content,content);
@querycat=$query(catalog,content);
@querycat[PageName]=$argv(0,$null);
@CatalogId=@querycat.scalar(['CatalogId'],['{*PageName =} and {*AreaId = $shell.getData(cn)}']);
@querynew[CatalogId]=@CatalogId;
@listnews=@querynew.pager(*,['Status>0 and {*AreaId = $shell.getData(cn)} and {*CatalogId =}'],['Grade desc,Modified desc,ContentId desc'],@countc,$argv(1,1));
@row[contentlist]=@listnews.format(@listF...