Re: [Zope] textarea too small? here's my hack
I want to change the amount of rows the textarea changes with in Zope to a smaller number. Where do I do that? By clicking "Taller" or "Shorter" the page obviously "recompiles" with a different number or rows for textarea. By looking at the HTML source in the management view, one click on "Taller" increases row="20" to row="25" I want it to change from 20 to 22 only. Ideas? --- Marco Mariani <m.mariani@imola.nettuno.it> skrev:
In OFS/documentEdit.dtml, move
<TR> <TD align=left> <INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Change"> </TD> <TD align=left> <INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Taller"> <INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Shorter"> <INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Wider"> <INPUT NAME=SUBMIT TYPE="SUBMIT" VALUE="Narrower"> </TD> </TR>
before the previour TR tags, and the buttons will appear before the textarea.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_____________________________________________________ Do You Yahoo!? Ditt_namn@yahoo.se - skaffa en gratis mailadress på http://mail.yahoo.se
Peter Bengtsson wrote:
I want to change the amount of rows the textarea changes with in Zope to a smaller number.
Where do I do that? By clicking "Taller" or "Shorter" the page obviously "recompiles" with a different number or rows for textarea. By looking at the HTML source in the management view, one click on "Taller" increases row="20" to row="25" I want it to change from 20 to 22 only. Ideas?
In OFS/DTMLMethod.py you will find the declaration for _size_changes: _size_changes={ 'Bigger': (5,5), 'Smaller': (-5,-5), 'Narrower': (0,-5), 'Wider': (0,5), 'Taller': (5,0), 'Shorter': (-5,0), } Just change it to: _size_changes={ 'Bigger': (5,5), 'Smaller': (-5,-5), 'Narrower': (0,-5), 'Wider': (0,5), 'Taller': (1,0), 'Shorter': (-1,0), } Shane
participants (2)
-
Peter Bengtsson -
Shane Hathaway