English 中文(简体)
我怎么能添加一个连接外部网站的菜单?
原标题:How can I add a menu entry that links to an external site?
  • 时间:2011-10-27 14:56:28
  •  标签:
  • plone

我要在我的顶点上添加一个主要表格,把这个链接到一个新窗口的外部网站。 我理解如何在静态的html网页上做到这一点,但我不敢肯定如何以“邦特兰”的方式做到这一点。 当我把一个链接内容类型添加到我的家里时,这一联系在目前的浏览器中的确是间接的。

最后,我想在一条主要航标(连同我的其他主要波罗纳表格)中提供链接,但我不肯定如何这样做。 是否有处理这种情况的内在功能?

我根据产品MCMFPlone.skins.plone_content.link_redirect_view.py对代码进行了研究,我认为链接内容类型是行之有效的。 似乎通过采用这种方法产生了联系:

return context.REQUEST.RESPONSE.redirect(context.getRemoteUrl())

我怎么能够添加一种新类型,在新窗口中做同样的事情,但只是开放吗?

I m目前运行在CentOS5.3和Plone 4.1.2。

问题回答

这一选择可在类型控制小组网页上找到。

仅选择“链接”类型,就应当向您提出“直接联系目标”的选择。 我认为,这是你所回顾的。

专题控制小组网页上的选项更多地用于内容链接,而不是连接物体。

您可以拆解自动制成的制片并确定自己的制片。 为此:

  1. go to plone_control_panel -> Navigation Settings
  2. disable "Automatically generate tabs"
  3. go to plone_control_panel -> Zope Management Interface -> portal_actions -> portal_tabs.
  4. using the menu in the top-right corner, add one "CMF Action" per menu entry that you need. You can use the "index_html" as example.

Action example:

Title: W3C

Note: disabling "Automatically generate tabs" is not mandatory, but if you leave it enabled then your custom actions will always appear before all auto generated tabs. It could be an option.

更多信息:

您也可在海委会中使用<条码>港值-actions,以建立一个新的航标。 在URL表述领域,进入URL. i.e. string:http://www.thesite.com。 新的表格将登在您的航海上,并将直线与你具体指明的地点连接。

欲了解更多信息,请登陆网站





相关问题
How to go from uml to app in zope (plone)

I have watched this keynote that talk about develop an app based on an UML model, but I can t find any tutorial or docs about it. Do you know any tutorial or documentation to help me? thanks

Install Plone egg as a Python module on Windows

I have a Plone site (Plone version 3.1.2) that I need to install a product called GrufSpaces on - (http://plone.org/products/grufspaces). However, it is a production site and so I can t easily take it ...

Plone with Apache Proxy

I have a plone zinstance set up through Apache Proxy on OS X Server 10.5. The server is set up with a single vhost on port 80, with Proxy & Proxypass directives to the Plone zinstance: ...

Zope / Plone 3 product uninstsall issue

Hey all, I uninstalled a content type that I d previously added and afterward I m still getting a warning of 2010-01-06 22:43:50 WARNING OFS.Uninstalled Could not import class myclass from module ...

plone.app.blob or z3c.blobfile?

I need a blob file field as part of a content type in plone. plone.app.blob s BlobField should provide this, but I can t find how to get a URL to download the file including the original filename (e.g....

Moving (very old) Zope/Plone Site to Django

I am ask to move data from a (now offline) site driven by Plone to a new Django site. These are the version informations I have: Zope Version (unreleased version, python 2.1.3 ) Python Version 2.1....

热门标签