Changeset 2267 in products for quintagroup.dropdownmenu


Ignore:
Timestamp:
May 7, 2010 8:43:43 AM (14 years ago)
Author:
chervol
Message:

added simple current item/parent implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/viewlets.py

    r1319 r2267  
    9393                    if IActionCategory.providedBy(subcat): 
    9494                        children = self._subactions(subcat, object, level+1) 
    95  
     95                url = self.context.absolute_url()         
     96                if url.startswith(info['url']): 
     97                    currentParent = True 
     98                if url == info['url']: 
     99                    currentItem = True 
    96100            # make up final tab dictionary 
    97101            tab = {'Title': info['title'], 
Note: See TracChangeset for help on using the changeset viewer.