如何在Plone中呈现/订购/布局portlet? [英] How are portlets rendered / ordered / layed out in Plone?

查看:115
本文介绍了如何在Plone中呈现/订购/布局portlet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改我的Plone站点中portlet的全局顺序.我已经搜索了Plone源代码,但找不到真正迭代并呈现portlet的代码,例如"plone.rightcolumn"和"plone.leftcolumn"内容提供程序.该代码在哪里?

I'm trying to change the global ordering of the portlets in my Plone site. I've searched the Plone source code but I can't find the code that actually iterates through and renders the portlets, for example the 'plone.rightcolumn' and 'plone.leftcolumn' content providers. Where is that code?

推荐答案

首先检查 http://developer.plone.org/reference_manuals/old/portlets/rendered.html 了解技术细节(恕我直言,这是最新的信息)

First check http://developer.plone.org/reference_manuals/old/portlets/rendered.html for technical details (imho this is still up-to-date)

PortletRetriever (plone.portlets )收集并订购所有portlet分配.

The PortletRetriever (plone.portlets) collects and orders all portlet assignments.

PortletManagerRenderer 使用检索器的信息来呈现列

The PortletManagerRenderer uses the informations of the retriever to render the column

还要查看 Solgema.PortletsManager 的代码,他们改进了PortletRetriever,这正是您想要做的.

Also have a look at the code of Solgema.PortletsManager they improved the PortletRetriever, this is exactly what you want to do.

这篇关于如何在Plone中呈现/订购/布局portlet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆