Re: [Zope] anybody written a "tab folder"/<dtml-tab> feature?
On Wednesday, August 1, 2001, at 05:30 AM, "Peter Bengtsson" <mail@peterbe.com> wrote:
the ZMI doesn't have a tab called "widget". Not in any of the 2.2.x or 2.3.x or 2.4.x Or in other words, I've never seen one.
The zope management interface has a nice tab folder "widget". Sure would be nice if there was a <dtml-tab>
What would a <dtml-tab> do? Writing DTML tags is easy if you search for the How-Tos on it and there's plenty of examples to download and follow.
I believe Albert is thinking of the management tabs in general. By widget he means a general method of making such an interface feature. The management tabs are generated from the manage_options tuple that is defined in Python ZClasses (they are done automatically in ZClasses made in the ZMI though the View tab). For example, in one of my Python classes: manage_options = ( {'label': 'Meta', 'action': 'manage_metaInfoEditForm'}, {'label': 'View', 'action': 'index_html'}, ) If I call <dtml-var manage_tabs> in one of my management screen, then the contents of mange_options will be rendered as tabs. I don't know if there is any way to use <dtml-var manage_tabs> outside of the management screens. Obviously manage_tabs only needs a tuple of dictionaries to render the tabs, so there may be a way to make it render an arbitrary tuple, not just manage_options. Hope this helps. -- Mark James Adams mark@raysend.com
Yes, that's what I'm looking for. Will take a look at manage_options features, guess I can create a simple python method. Thanks! Albert Mark James Adams writes:
From: Mark James Adams <mark@raysend.com> To: zope@zope.org Cc: mail@peterbe.com, alt@sonic.net Subject: Re: [Zope] anybody written a "tab folder"/<dtml-tab> feature? Date: Wed, 1 Aug 2001 09:59:30 -0400
On Wednesday, August 1, 2001, at 05:30 AM, "Peter Bengtsson" <mail@peterbe.com> wrote:
the ZMI doesn't have a tab called "widget". Not in any of the 2.2.x or 2.3.x or 2.4.x Or in other words, I've never seen one.
The zope management interface has a nice tab folder "widget". Sure would be nice if there was a <dtml-tab>
What would a <dtml-tab> do? Writing DTML tags is easy if you search for the How-Tos on it and there's plenty of examples to download and follow.
I believe Albert is thinking of the management tabs in general. By widget he means a general method of making such an interface feature.
The management tabs are generated from the manage_options tuple that is defined in Python ZClasses (they are done automatically in ZClasses made in the ZMI though the View tab).
For example, in one of my Python classes:
manage_options = ( {'label': 'Meta', 'action': 'manage_metaInfoEditForm'}, {'label': 'View', 'action': 'index_html'}, )
If I call <dtml-var manage_tabs> in one of my management screen, then the contents of mange_options will be rendered as tabs. I don't know if there is any way to use <dtml-var manage_tabs> outside of the management screens. Obviously manage_tabs only needs a tuple of dictionaries to render the tabs, so there may be a way to make it render an arbitrary tuple, not just manage_options.
Hope this helps.
Is there any difference for these two dtml tag style varieties i.e... <dtml-var title_or_id> or <!--#var title_or_id--> I just downloaded the color coding and tag insight for dtml on HomeSite and the first style tags don't seem to highlight properly, yet the second ones do. so I'm thinking I'll stick to the second style if of course there isn't a reason to do otherwise. Thanks, Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com
On Wed, 1 Aug 2001, Jerry Lake wrote:
Is there any difference for these two dtml tag style varieties i.e...
<dtml-var title_or_id> or
<!--#var title_or_id-->
No, there's no difference that I know of. The <!--#var> syntax is deprecated. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson@visi.com | <dtml-var pithy_quote> | http://linux.com
participants (4)
-
Albert Ting -
Jerry Lake -
Mark James Adams -
Timothy Wilson