Skip to content

Instantly share code, notes, and snippets.

@alexnask
Created December 4, 2010 15:54
Show Gist options
  • Save alexnask/728274 to your computer and use it in GitHub Desktop.
Save alexnask/728274 to your computer and use it in GitHub Desktop.
thtml sample
<%
Database: "news"
DescOrder: "id"
Column: Title,"title"
Column: Contents,"contents"
LineCount: NewsCount
for[i:0..5]{
if[Title(i) != NULL]{
%>
<div class="cadre">
<div class="titre">
<%Show: Title(i);%>
</div>
<div class="marge_interne">
<br/>
<%Show: Contents(i);%>
</div>
</div>
<br/><br/>
<%
}
}
%>
<a href="oocms.cgi?page=index&subpage=allNews">Show all <%Show: NewsCount;%> news!</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment