Ideas…CDS

%def-tags%{
ctrl:com.ctrlweb.cds.DefaultProcessor;
lang:com.ctrlweb.cds.LangProcessor;
}
%def-inputs%{
title:string;
records:collection required;
time:date required “MM/dd/yyyy HH:mm:ss”
page:TemplatePage;
}

title{
ctrl-content:page.head.title;
}

#content{
ctrl-content:page.body;
}

label{
lang-text-content-key:$(document[this[@for]][@name]);
lang-text-content-default:”####”;
}

#records{
ctrl-iterate-collection:records;
ctrl-iterate-var:record;
ctrl-iterate-copynode:#records .record;
}

#records .record .album{
ctrl-content:record.album;
}
#records .record .artist{
ctrl-content:record.artist;
}
#records .record .year{
ctrl-content:record.year;
}

Leave a Reply