If you want to use crud with the questions you could even store them in a 
table

Then you can do for example. Consider also using markmin for the responses

{{for faq in db(db.faq).select():}}
  {{ =H3(T(faq.question))}}
  ...
  {{=DIV(T(faq.answer))}}
  ...
{{pass}}



El viernes, 3 de agosto de 2012 10:08:47 UTC-3, Rob_McC escribió:
>
> My app needs a very simple FAQ page (in many languages),
>  maybe only 12 Questions, I know code, so I can add/edit/delete questions 
> in web2py views.
>
> This appears to be the simplest way to do this.
> I use the "~" to group the questions while editing  i.e:
> /admin/default/edit_language/PublicProfile/languages/it.py
> (otherwise the order is alphabetical)
>
> *Question:
> *Is this a good approach for simple FAQ pages on a web2py app?
>
> Thanks for help  
>  ~Rob
>
> Sample Code:
>
> {{extend 'layout.html'}}
> <h1>This is the default/faq.html template</h1>
>
> <!-- FAQ #1 -->
> <h3>{{=T('~ Is the application free?')}}</h3>
> <p>{{=T('~ Yes, it is completely free.')}}</p>
>
> <!-- FAQ #2 -->
> <h3>{{=T('~ Will the application always be free?')}}</h3>
> <p>{{=T('~ Yes, there will always be a free version.')}}</p>
>
>
> *Note:
> *I did read about flatpages plugin, but that looks like way more than I 
> need?
>
>

-- 



Reply via email to