问题标签 [plone-4.x]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
31 浏览

zope - Zope 2 错误:当前用户没有所需的“查看”权限

我无法在我网站的某些文件夹中添加内容。error_log中出现以下错误

但我使用的是管理员用户。

克隆 4.1.5,Zope 2.13.13

0 投票
2 回答
118 浏览

plone - plone 4 导航 portlet 不隐藏

在 ubuntu 14.04 下的 plone 4.3.3 上,无论我隐藏还是删除 Navigation portlet,它都保持为可见的水平条,位于面包屑上方。即使我隐藏或删除主文件夹及其默认视图的导航 portlet,也会发生这种情况。如何诊断问题?

0 投票
1 回答
77 浏览

single-sign-on - 使用通过 HTTP 传递的凭据登录到 Plone 站点

我正在使用 Plone 4.3.3 并且对 Plone 开发相当陌生。这是我想要实现的目标:

我有另一个站点将重定向到我的 Plone 站点。在 http url 行中,重定向到 Plone 站点我想传递一个用户名,而 Plone 站点应该自动使用该用户名登录用户,而无需询问密码等任何凭据。在这一点上,我不关心安全或加密。你将如何做到这一点?(我想我需要以某种方式修改现有的登录视图,但我该怎么做呢?)谢谢。

0 投票
1 回答
321 浏览

css - 如何在 Plone 中将 css 添加到我的页面?

我无法在 Plone 中将 css 样式应用于我的页面。我是 Plone 的新手,通常我使用 wordpress。

0 投票
0 回答
24 浏览

dexterity - 调整克隆敏捷容器视图

我有一个自定义的 plone 敏捷内容类型,它是其他敏捷类型的容器。我添加了一个额外的视图来递归地总结这个类型的内容。

我需要匿名用户能够像往常一样导航到默认视图,然后还可以看到指向此摘要视图的链接。我不想从头开始重写默认视图,而只是添加一个简单的超链接。我已经阅读了敏捷手册,但我似乎无法实现如何完成我正在尝试做的事情。

有什么建议吗?

0 投票
2 回答
308 浏览

plone - Linking to a "File type" Dexterity Content Type

We're creating a database of files on a new Plone 4.3.2 website, using eea.facetednav as the main interface. In order to have multiple searchable "tags" plus additional information like publish year, article type, etc etc, we've created custom Dexterity content types for these "files". One of the fields on the Dexterity content type is to upload the actual file.

Everything was going swimmingly UNTIL I realized...

One of the basic functionalities of linking to "files" is now broken. Whereas we would expect creating an internal link to a file will prompt opening the file or downloading it when clicked, now it just takes you to the "view" for the new Dexterity content type, where there's a link to the actual file.

This is pretty cumbersome. Has anyone done this before, or found a way to have it automatically link to download the file? If we need to disable/scrap the Dexterity content type view in favor of the direct link, that's probably fine, but bonus points if you can think of a way to make this work both ways (i.e. have a linking method that takes it to the file and a linking method that takes it to the view).

This is the page I mean by "view", in case it's unclear: enter image description here

... Off the top of my head, I can think of a weird Diazo solution of making a custom template that parses this view and automatically redirects to the file link, but that seems wrong/weird. Other thoughts?

0 投票
1 回答
318 浏览

plone - 显示具有特定标题的自定义 Dexterity 内容类型的集合

今天一整天的灵巧问题!

因此,我们尝试对这些自定义 Dexterity “文件”做的下一件事是将它们的集合在整个网站中显示在带有某些标题的表格中。这可能吗?目前,集合默认的 tabular_view 仅显示以下选项:

表列默认选项

所以它最终看起来像:

灵巧合集

但是,我们希望表格标题为:Title、Type、Program 和 Year,基于 Dexterity 内容类型设置中的字段:

主要的

这甚至可能吗?我们使用集合的原因是因为我们想在网站的不同区域显示这些文件的一个小节。也可能,我们希望使用集合 portlet 在其他页面上显示三个最近的文件。

我们是否会更好地在任何地方使用多个 eea.facetednav 实例?

0 投票
1 回答
65 浏览

plone - 使用反向代理时不显示 Plone 4.3 注释

好的,我的 plone 站点在端口 8080 上输出,鱿鱼缓存在端口 3128 上。然后我设置 apache 运行反向代理,这样我的整个站点将显示为“foo.com”而不是我的服务器名。我遇到的问题是,当人们尝试通过“foo.com”访问我的网站时,它不会显示评论框。它通过我的 squid 输出显示,但是当您实际输入 url 时,它不存在。有什么建议么?

0 投票
1 回答
124 浏览

plone - 无法使用 INavigationRoot 在 Plone 子站点中自定义徽标

在 Plone 4.3.3 中激活基于敏捷的 Plone 默认类型后,我遇到了一个问题。我有许多子站点(激活了 INavigationRoot 界面的文件夹。)每个子站点都有一个自定义徽标,该徽标存储logo.png在每个用作导航根的文件夹中。它工作得很好,直到我激活了基于 Dexterity 的 Plone 默认类型。那时,所有自定义徽标都替换为基本 Plone 网站上显示的徽标。

当我调查这个问题时,我注意到在呈现的 HTML 中子站点徽标是绝对 URL。我期待对 logo.png 的不合格引用,它可以在当前文件夹或 .png 的默认位置中找到portal_skins/custom

徽标在 Sunburst 主题的属性中定义,位于 buildout_cache/plonetheme.sunburst-1.4.6-py2.7.egg/plonetheme/sunburst/skins/sunburst_styles/base_properties.props

logoName由中LogoViewlet定义使用buildout_cache/plone.app.layout-2.3.12-py2.7.egg/plone/app/layout/viewlets/common.py

无论出于何种原因,自定义徽标都被忽略了,而子站点则呈现基本徽标。

粗略的解决方案:编辑buildout-cache/eggs/plone.app.layout-2.3.11-py2.7.egg/plone/app/layout/viewlets/logo.pt

改变:

至:

这会忽略皮肤属性,将徽标硬编码logo.png到服务器上的所有 Plone 站点和子站点中。所有人都在重新工作。

显然我有一个解决该问题的解决方案,但“正确”的解决方法是什么?

0 投票
1 回答
87 浏览

collections - 如何让位置字段显示 plone-4.x 集合中的任何内容

我正在尝试使用一个集合,该集合将按状态列出项目并在表格列表的位置字段中提供指向它们的链接。位置很重要的原因是同一个项目可以添加到许多不同的文件夹/对象中,因此标题和类型信息不够丰富。无论如何,我的问题是该位置在显示集合的表格中给出了一个空白条目。我已经对我网站上的所有类型的项目进行了尝试:页面、文件夹、自定义灵活性内容类型等。有什么提示吗?

目前的配置是 Plone-4.3

谢谢。