Main Layout, Content Provider and Viewlet

Jonathan Bowlas <j.bowlas-hclig2XLE9Zaa/[email protected]> Tue, 7 Jun 2011 10:19:58 +0100
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Hi Silva Devs

Quick question, when developing a new visual theme is it possible to
call a function defined within a Main Layout object (i.e. the layout
object in the Porto layout called mainlayout) from another
ContentProvider or Viewlet page template? If so how would I do this?

The reason I ask is that we have a NonPublishable SimpleItem
(UCLAttributes object) that we use to allow Silva Editors to configure
various options within the layout, and rather than having to write a
function to call this from every Viewlet and ContentProvider everytime
I need a parameter it would be prefereable to call it once globally.

Hope that makes sense.

Cheers

Jon

-- 
Jonathan Bowlas
Web Support Officer
Media Services
University College London
Email: j.bowlas-hclig2XLE9Zaa/[email protected]