From: R K <lin...@ho...> - 2004-11-04 04:27:18
|
Hi Boris, Thanks for the efforts, I really really appreciate them, yes the settings did work out, I forgot to read the fine print of Section attribute. Thanks a lot again. PageKit with TT2 is one cool combination, simply put amazing! Thanks again. -RK Boris Zentner wrote: > Hi Verresh, > > sorry, I was out of the office today. > > Am 03.11.2004 um 12:35 schrieb R K: > >> Hi Boris, >> >> Is there a way to disable FillInForm globally?. I am having tough >> time taking care of Config.xml and the model code. >> > > See the sections part of your Config.xml > > <SECTIONS> > <SECTION id='/' fill_in_form='no'/> > </SECTIONS> > > This make fill_in_form="no" the default for all pages. You can > overwrite the in the PAGE section or add another section tag. > > >> Thanks >> -RK >> Boris Zentner wrote: >> >>> >>> Hi Veeresh, >>> >>> it's not a bug, it is a future. >>> >>> I add this sub to the modelcode: >>> >>> sub tst { >>> shift->output( seekrecord => 200 ); >>> } >>> >>> and add a View Default/View/tst.tmpl >>> <html> >>> <body> >>> <form > >>> [% seekrecord %] >>> <input value=[% seekrecord %] name="seekrecord" type="hidden" /> >>> </form> >>> </body> >>> </html> >>> >>> I reordered it a bit, but without changing the effect ( wo testing ). >>> >>> What happened is that: the model data is filled ( you could also >>> write <modelvar seekrecord> instead of [% seekrecord %] this gives >>> you the advantage to switch between TT and H:T on the fly ). Then >>> the fillinform action takes place and overwrite the value=200 part >>> with whatever value you or the form supply. This may happened implicit. >>> For example with http://whatever/tst?seekrecord=abc for example. >>> >>> You can overcome the effect by >>> >>> 1. >>> using $model->fillinform( seekrecord => 'something' ); in >>> addition or as a replacement for $model->output. >>> >>> 2. >>> disable the autofillin action for the page: ie >>> fill_in_form="off" for the page ( Config.xml page section ). >>> >>> 3. >>> let you source as it is, just tell fillin to ignore this field >>> with $model->ignore_fillinform_fields( qw/seekrecord/ ); >>> >>> just choice one of the options that you like most ;-) >>> >>> I have not tested the above, but it should work this way or very >>> close to that. >>> >>>> Am Dienstag, 2. November 2004 14:56 schrieb R K: >>> >>> >> >> > -- > Boris > |