plone 3.3.1 拼贴画中文件夹视图中署名的可见性

发布于 2024-11-02 13:32:59 字数 1094 浏览 3 评论 0原文

我目前正在设置我的克隆站点以显示文件夹中内容项目的到期日期。这是跟踪我们内联网上旧文件和文档的过程的一部分。

我已经更改了我的“文件夹列表”,以显示到期日期(如果有的话)(或者说没有,如果没有这样的日期),它按我的预期工作。不幸的是,我似乎无法用我的插件之一复制这一点。

我目前正在使用一个名为 collage(版本 1.2.3)的插件,它基本上允许我们将不同类型的内容组合作为主页。我不太确定拼贴画是做什么用的,但是当它们显示文件夹的内容时,它们似乎只显示标题和描述。

以前这很好,但现在我想显示署名的到期日期。我一直在搜索所有 python 文件和视图,但似乎找不到它决定在哪里切断署名,但听起来确实像是调用了folder_listing 文件。

当我打开一个使用拼贴画显示文件夹并查看源代码的页面时,署名线那里,但由于某种原因它没有出现在最终版本中。

如果有人对拼贴画或克隆有一定的了解并对此有想法,我将不胜感激任何见解。

作为参考,我通过将其包含在 tal:modified 条目下方来更改我的folder_list:

<tal:expire condition="python: item_type != 'Event'">
    &mdash;
    <tal:mod tal:condition="python:toLocalizedTime(item_expire,long_format=1)" i18n:translate="box_when_expires">
      Expires on
    </tal:mod>
    <span tal:condition="not: python:toLocalizedTime(item_expire,long_format=1)">
      This item has no expiration date listed.
    </span>
    <span tal:replace="python:toLocalizedTime(item_expire,long_format=1)">
      August 16, 2001 at 23:35:59
    </span>
</tal:expire>

I'm currently in the process of setting up my plone site to show expiration dates for content items in folders. This is part of a process to keep track of old files and documents on our intranet.

I have already altered my "folder listing" to show the expiration date if there is one (or say there isn't if there is no such date) which works as I expected. Unfortunately I cannot seem to replicate this with one of my addons.

I am currently using an addon called collage (version 1.2.3) which basically allows us to have a combination of different sorts of content as main-pages. I'm not quite sure what it is about collages that does this but when they show the contents of folders they only seem to show the title and description.

Previously this was fine but now I want to show the expiration date from the byline. I've been searching through all the python files and views and I can't seem to find where it decides to cut off the byline but it does sound like it calls on the folder_listing file.

When I open up a page which uses a collage to show a folder and view the source the byline is there, but it doesn't show up in the final version for some reason.

If anyone knows collages or plone moderately well and has a thought about this I would greatly appreciate any insight.

As a reference, I altered my folder_list by including this underneath the entry for tal:modified:

<tal:expire condition="python: item_type != 'Event'">
    —
    <tal:mod tal:condition="python:toLocalizedTime(item_expire,long_format=1)" i18n:translate="box_when_expires">
      Expires on
    </tal:mod>
    <span tal:condition="not: python:toLocalizedTime(item_expire,long_format=1)">
      This item has no expiration date listed.
    </span>
    <span tal:replace="python:toLocalizedTime(item_expire,long_format=1)">
      August 16, 2001 at 23:35:59
    </span>
</tal:expire>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时常饿 2024-11-09 13:32:59

您应该查看 Collage CSS Products/Collage/browser/templates/collage.css.dtml

有以下隐藏 documentByLine 的指令

#collage .collage-item .documentByLine {
    display: none;
}

我已覆盖此规则以设置 display: block; 在我自己的 css 中。

You should look at Collage CSS Products/Collage/browser/templates/collage.css.dtml

There is the following instruction which hides documentByLine

#collage .collage-item .documentByLine {
    display: none;
}

I have overrided this rule to set display: block; in my own css.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文