Re: How to dynamically add fields to model

2008-05-31 Thread spamec
lidation rule into the model, and adding the form field > into the views. > > On Fri, May 30, 2008 at 7:05 PM, spamec wrote: > > Hmm, but I dont know how many fields can admin declare. Its not > > possible, to make it dynamic in such a way (or am I wrong:) ).. > > Im

Re: How to dynamically add fields to model

2008-05-31 Thread spamec
) to the clients table it's as easy as adding a new column to the table with our friend DEFAULT NULL, popping the validation rule into the model, and adding the form field into the views. On Fri, May 30, 2008 at 7:05 PM, spamec <[EMAIL PROTECTED]> wrote: > Hmm, but I dont know how many

How to dynamically add fields to model

2008-05-30 Thread spamec
Hi there, I came to a problem and I'm really curious how other people manage such things. I have to build an application in which, admin can extend a Page model with additional fields. My idea is to create: Tables: - dynamicfields: id, name,type, required,modelname - dynamicfields_values: id, d