Commit 96cdb9ff authored by Amos Latteier's avatar Amos Latteier

Added a provision to fix misbehaving tab labels which appear when the action of a view

is not the same as the URL. If a management_view variable is set, then this rather than
the URL will be consulted to determine the selected management view of the the management
screen. The selected view is displayed in a lighter color than the other tabs, and can be
used to determine the help screen.

An easy way to define the management_view variable is to set it when creating a HTMLFile,
for example,

  manage_findForm=HTMLFile('findForm', globals(), management_view='Find')
parent 94b3d005
......@@ -7,6 +7,9 @@
URL[-17:]=='/manage_workspace' and _['sequence-start']">
<dtml-call "REQUEST.set('a_', _['sequence-index'])">
</dtml-if>
<dtml-if "_.has_key('management_view') and management_view==label">
<dtml-call "REQUEST.set('a_', _['sequence-index'])">
</dtml-if>
</dtml-in>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment