- Timestamp:
- 02/15/10 16:16:39 (2 years ago)
- Files:
-
- trunk/skins/lemill/getSectionFromURL.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/skins/lemill/getSectionFromURL.py
r2867 r3005 8 8 ##title=Returns section name (first part of URL) to the body tag 9 9 ## 10 lemill_sections = ('content', 'methods', 'tools', 'community') 10 11 contentPath = context.portal_url.getRelativeContentPath(context) 11 12 if not contentPath: 12 13 return "content" 13 14 else: 14 return contentPath[0] 15 # Additional check in case some pages are shown outside the section context 16 if contentPath[0] in lemill_sections: 17 return contentPath[0] 18 else: 19 return "content"
