--- Josef Chladek <j.chladek at wirtschaftsblatt.at> wrote:
> i'm fairly new to maypole, so excuse me if i'm asking something purely
> trivial. i've been studying the docs and examples but can't figure out
> how to realize mixing of textfields/areas from DIFFERENT tables in one
> create/edit
>
> create table article (id int not null auto_increment primary key,
> title varchar(100),
> lead text);
>
> create table textblock (id int not null auto_increment primary key,
> article integer,
> block text);
>
> an article has many textblocks.
>
> what i want to realize is a create mask, which has
>
> title
> lead
> block [0..n]
>
> in it. it seems that i'm only able to create the article FIRST, and
> then start adding blocks that i assign to the article. for an article
> this is not the most desired workflow...
>
> thanks
> josef
>
Hi josef.
I assume you're using default "FromCGI::create_from_cgi" sub to create your
objects. This is a limitation of that -- it doesn't create objects with many
components very well.. It could probably be overriden to automatically add
your blocks to the article. I'd be interested in a solution to this if you
write one. I've thought about doing this for a while but haven't gotten around
to it.
>
>
> _______________________________________________
> maypole mailing list
> maypole at lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
>
=====
pjs
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:58 GMT