[Zope] Small Tip

2000-08-25 Thread Maik Roeder

Hi !


It always got on my nerves that I needed to change the column
size of the DTML Method and DTML Document Edit Forms
manually by pressing "Wider" and "Narrower".

Instead of patching the Zope source code, I found the following
a good approach:

Define a property in your root folder:

id: dtpref_cols
type: int
value: 80

The magic of acquisition does all the rest ;-)

Greetings,

Maik Röder

-- 
"The computing future is based  on "cyberbodies" - self-contained, 
neatly-ordered,  beautifully-laid-out  collections of information, 
like immaculate giant gardens." The second coming - A manifesto. David
Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Small Tip

2000-08-25 Thread Jason Cunliffe

THANK YOU!!!

- Jason

 Maik Roeder wrote:
  It always got on my nerves that I needed to change the column
  size of the DTML Method and DTML Document Edit Forms
  manually by pressing "Wider" and "Narrower".
  
  Instead of patching the Zope source code, I found the following
  a good approach:
  
  Define a property in your root folder:
  
  id: dtpref_cols
  type: int
  value: 80
  
  The magic of acquisition does all the rest ;-)
 
 Or how about this (from Evan Simpson):
 
 In OFS/documentEdit.dtml change the line that reads:
 
 TEXTAREA NAME="data:text" WRAP="Off"
 
 to:
 
 TEXTAREA NAME="data:text" WRAP="Off" STYLE="width: 100%"
 
 This should make the edit box expand automatically to the full width in
 browsers that support this property, including IE 5.x and Mozilla but
 not Netscape 4.x.
 
 Shane



___
Zope maillist  -  [EMAIL PROTECTED]
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 )