Read up on access control for only letting certain users edit:
http://www.web2py.com/books/default/chapter/29/09/access-control

Then you can use something like 
plugin_ckeditor https://github.com/timrichardson/web2py_ckeditor4 for the 
pages.

Your model would be something like:
ckeditor = CKEditor(db)

ckeditor.define_tables()

db.define_table('page',
    Field('name', length=128, requires=[IS_NOT_EMPTY(), IS_LENGTH(minsize=3, 
maxsize=127)]),
    Field('body', 'text', widget=ckeditor.widget, requires=IS_NOT_EMPTY()),
    auth.signature,
    format='%(name)s'
)

Then you could use the regular SQLFORM to generate the form.

This is a good way if you want to store HTML for the posts, another 
alternative is to use markdown or markmin this will depend on your goal.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to