Ignore:
Timestamp:
5 Apr 2013, 05:37:07 (12 years ago)
Author:
Henrik Bettermann
Message:

Lets use a simple trick to configure the footer through the UI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ngrentheme/trunk/waeup/ngrentheme/browser/viewlets.py

    r10049 r10057  
    2525class WAeUPFooterViewlet(FooterViewlet):
    2626    index = ViewPageTemplateFile('templates/footer.pt')
     27
     28    def render(self):
     29        footer = getattr(self.portal_state.portal(), 'footer', None)
     30        if footer is None:
     31            return self.index()
     32        footer_text = footer.getText()
     33        return  u"""
     34<div class="cell width-full position-0">
     35  <div id="portal-footer">
     36    %s
     37  </div>
     38</div>""" % footer_text
    2739   
Note: See TracChangeset for help on using the changeset viewer.