Combining views and widgets

38 views
Skip to first unread message

Tiarnan O'Corrain

unread,
Apr 26, 2012, 3:05:55 PM4/26/12
to weblocks
Hi--

I've searched the archives on this, but the results are...
inconclusive.

I'm using the scaffold form views extensively, very nice indeed.
However, they don't cover all of the functionality I want to express.
Basically I want three different views for an object: the first one is
what comes out of the scaffold/declarative form stuff, the second is
so that images can be added to/deleted from the object, and the third
is so that tags can be associated/deassociated with the object.

I'm happy to do this with one declarative view and two custom widgets,
and I've implemented these. What I want to do is to make a master
widget that includes all three.

I have a gridedit widget that calls the scaffold view: instead I'd
like it to call the master widget, allow the user to edit whatever
aspect of the object he likes.

Can this be done? I'd like to take advantage of the nifty automatic
form generation but introduce some more flexibility.

regards

Tiarnán

Leslie P. Polzer

unread,
Apr 26, 2012, 4:30:03 PM4/26/12
to webl...@googlegroups.com
Did you take a look at form-widget in contrib? This might help you. It is designed to replace the old dataform widget (which is the traditional way in which form views are used in Weblocks). form-widget is way more flexible but can also take advantage of static views.

  Leslie

Tiarnan O'Corrain

unread,
May 1, 2012, 9:22:29 AM5/1/12
to weblocks
Hi--

this looks promising, thanks. I see it is missing a widget for
checkbox presentations. I'll try to add that.

regards

Tiarnán

Leslie P. Polzer

unread,
May 1, 2012, 4:16:46 PM5/1/12
to webl...@googlegroups.com

On Tuesday, May 1, 2012 3:22:29 PM UTC+2, Tiarnan O'Corrain wrote:
Hi--

this looks promising, thanks.  I see it is missing a widget for
checkbox presentations.   I'll try to add that.

That would be great!

  Leslie
Reply all
Reply to author
Forward
0 new messages