Something like that sounds like you just write a controller to query the 
db.wiki_page then use the example view from the book. Don't know of a 
stratight db call but I will need the same function soon myself.

This view might work with the right controller:


{{if len(articles):}}
  <h2>Articles</h2><br /><p>
  {{for article in articles:}}
<h1>{{=article.title}}</h1>
<center>
{{if article.image:}}
<img width="200px"
     src="{{=URL('download', args=article.file)}}" />
</center>
{{pass}}
    <p>{{=article.author}} wrote <i>{{=article.body}}</i></p>
  {{pass}}</p>
{{else:}}
  <h2>No articles posted yet</h2>
{{pass}}
<h2>Post an article</h2>
{{=form}}

-- 



Reply via email to