For the general public we are using CMF. For myself and one or two other developers some work within the ZMI will be required. I would like to be able to make some enhancements for the way that we work and code. Is there any documentation on what dtml files control which part of the ZMI and where those files reside on the filesystem?
From: Andreas Jung <lists@andreas-jung.com> Reply-To: Andreas Jung <lists@andreas-jung.com> To: Michael Havard <nhavar@hotmail.com>, zope@zope.org Subject: Re: [Zope] Customize the ZMI Date: Tue, 04 Mar 2003 18:32:53 +0100
checkout the .dtml files of the zope distribution. Are you really sure that you want to customize the ZMI??? Better take a look at CMF/Plone when you need customized templates for content management purposes.
-aj
--On Dienstag, 4. März 2003 17:14 +0000 Michael Havard <nhavar@hotmail.com> wrote:
What files can be edited to change the ZMI. Does this have to be done from the file system or can it be done from within the ZMI itself.
I want to be able to change some of the styling, logo, label placement, etc.
_________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
For the general public we are using CMF. For myself and one or two other developers some work within the ZMI will be required. I would like to be able to make some enhancements for the way that we work and code. Is there any documentation on what dtml files control which part of the ZMI and where those files reside on the filesystem?
It's easy to figure out for yourself: look at the url some page is under, and what type of object it is being called on. The end of the URL is a method of the Zope object (possibly acquired, probably not in the ZMI.) Look in the zope source for that type of object for that method. Many of the built-in products live in lib/python/OFS. That method will probably be an instance of a DTML method or something similar, and that will tell you where the source for that object is (usually under a dtml subdirectory.) Say you want to find the frameset of the ZMI. This is 'manage', as you can see in your browser. This is called on the root, which is a Folder. Find the folder class, which is in lib/python/OFS/Folder.py module. But this has no 'manage' method, so it must be in a super-class. Check ObjectManager, in ObjectManager.py. We find there a 'manage_main' which says it is in 'dml/main' and also a 'manage_index_main', but no 'manage' just yet. At this point, you could guess and take a look at lib/python/OFS/dtml/main.dtml (the suffix is appened before lookup) to see if this is it (it isn't). We'll have to look some more. So where is 'manage'? Perhaps one of the other superclasses of ObjectManager? Take a look through App.Management.Navigation (in lib/python/App/Management.py) and go to the Navigation class. There it is: 'manage' is a DTMLFile in 'dtml/manage', meaning 'lib/python/App/Management/dtml/manage.dtml'. The same class also defines an awful lot of the rest of the ZMI. The shortcut is to find some probably-unique text and do a search of file contents in your zope install. A simple grep -r frameset * will also get you the same file, and a lot faster. But you won't understand why half so well. --jcc
participants (2)
-
J Cameron Cooper -
Michael Havard