[1] after a day of browsing on the net i found the solution. creating another content provider and then calling it from where ever (eg. main_template) is so simple that i think plone developers should use it more often.
content providers = zope piece of content to be shown on a page.
EXAMPLE
how to create and register content provider. packages is called "garbas.firstpage".

then you simply call you provider from any other template using
< tal:replace="structure provider:garbas.firstpage.firstpage" /&rt;
next time i'll show how to benefit from using content provider with kss. stay tuned ...
[1] http://wiki.zope.org/zope3/FAQConfigurationAndSetup#how-can-i-register-a-content-provider-without-using-viewlet-managers
No comments:
Post a Comment