Sorry to rehash this topic. It's that important to me.

What I really want is the plugin_wiki functionality but without
compromising the MVC way of making things with web2py. I wanted to be
able to create some pages with the plugin_wiki in a way that allowed
me to plug a normal controller and a specific view into it.

Currently, the closest thing I found to it is to use the load_url
widget and I can only define generic views.

Thank you,
Best regards

On Nov 30, 11:50 pm, blackthorne <[email protected]> wrote:
> hi
>
> 1.
> with the table new like this:
> db.define_table('new',
>         SQLField('photo_id', 'string'),
>         SQLField('name', 'string', notnull=True, length=16,
> requires=IS_NOT_EMPTY()),
>         SQLField('created', 'datetime',
> notnull=True,default=datetime.datetime.now(),requires=IS_DATETIME()),
>         SQLField('created_by', 'string'),
>         SQLField('tag', 'string'),
>         SQLField('link', 'string', length=80, default=None,
> requires=IS_URL()),
>         SQLField('type', 'string', notnull=True, length=16, default=types[0],
> requires=IS_IN_SET(types)),
>         SQLField('slug', 'string', length=32, default=''),
>         SQLField('description', 'text', notnull=True,length=64,
> requires=IS_NOT_EMPTY())
> )
>
> Using plugin_wiki, I can't use the "read" widget. Other widgets like
> jqgrid work fine.
>
> 2. How can I access my app model from the plugin_wiki?
>
> 3. how should I map a controller to a plugin_wiki page?
>
> Thank you
> Best regards

Reply via email to