<div id="submenu">{{getcontent id=300}}</div>
<div id="middle2">
{{getCollectionByCategory CollectionID=3 ColumnID=1 Value=$smarty.session.UserID OrderColumn=1 var=Groups}} 
{{assign var=generalUser value=0}} 
{{assign var=moderatorUser value=0}} 
{{foreach from=$Groups item=v key=k}} 
{{if $v.Collection_3_2 eq 1 or $v.Collection_3_2 eq 5 }} {{assign var=moderatorUser value=1}} {{/if}} 
{{if $v.Collection_3_2 eq 3 or $v.Collection_3_2 eq 4 }} {{assign var=generalUser value=1}} {{/if}} 
{{/foreach}}

{{assign var=CatCollection value=60}} 
{{assign var=DescCollection value=61}}
{{assign var=CommentsCollection value=62}} 
{{getCollectionByCategory CollectionID=$CatCollection OrderColumn=2 OrderWay=1 var=Categories ColumnID='ID' Value=$smarty.get.topic}} 
{{assign var=CatData value=$Categories[0]}} 
{{assign var=CatName value=1|fieldName:$CatCollection}} 
{{assign var='PageTitle' value='Discussions - '}} 
{{assign var='PageTitle' value=$PageTitle|concat:$CatData.$CatName}} 
{{setPage var=Collection_17_2 value=$PageTitle}}

<h1>{{$CatData.$CatName}}</h1>
{{* we will get the last 5 articles that were posted *}}
{{getCollectionByCategory CollectionID=$DescCollection OrderColumn=5 OrderWay=1 ColumnID=2 Value=$smarty.get.topic var=Last5Articles Limit=10 Page=0}} 
{{if $Last5Articles|@count gt 0}} 
{{getcontent id=303}} 
{{else}}
<p> </p>
<p> </p>
<center>
<h3>There are no dicussions available</h3>
</center>
{{/if}}
</div>