在plone内容中显示新链接(permalink)。如果您移动内容本身,这不会改变。
collective.permalink的Python项目详细描述
集合.permalink
这将向每个支持的plone内容添加一个permalink。永久链接是指向内容的链接 即使你重新命名或移动它也不应该改变。
功能
- 作为对象操作或文档操作永久对齐
- 单击事件时将javascript复制到剪贴板
翻译
此加载项已转换为
- 英语
开发设置
假设您有一个干净的带有virtualenv和pip的python 2.7:
cd <your sandbox dir> git clone https://github.com/collective/collective.permalink.git cd collective.permalink <virtualenv2.7> . source ./bin/activate pip install -Ur requirements.txt buildout
运行实例:
instance fg
运行代码分析:
code-analysis
运行测试:
./bin/test -s collective.permalink
在其他项目中的使用
通过构建用作鸡蛋
通过将collective.permalink添加到buildout.cfg:
[instance] recipe = plone.recipe.zope2instance ... eggs = ... collective.permalink ...
通过setup.py
用作鸡蛋通过将collective.permalink添加到您的setup.py:
install_requires=[ ... 'collective.permalink', ... ]
通过构建用作源
通过将collective.permalink添加到buildout.cfg中来安装 mr.developer是必需的!:
[sources] collective.permalink = git https://github.com/collective/collective.permalink.git ...
然后运行buildout
如何使用
默认实现基于ploneresolveuid特性。 对于没有plone.uuid支持的内容,这将不起作用(并显示任何内容)。但是你可以 定制和开发额外的适配器,为您的类型提供permalink(或定制 默认值)。
新资源将添加到document actions部分。
学分
在Azienda USL Ferrara的支持下开发;Azienda USL Ferrara支持 PloneGov initiative。
贡献
许可证
该项目是根据gplv2授权的。
贡献者
- 红海龟
- 马库斯·希尔伯特,markus.hilbert@iham.at
- 斯文·斯特拉克,sven@so36.net
更改日志
1.0.5(2018-03-22)
- 修复js错误。 [IHAM]
1.0.4(2018-03-21)
- Pypi版本混乱…无所谓。 v 1.0.3被删除。 [IHAM]
1.0.3(2018-03-21)
- 固定资源注册,使其与plone资源编译一起工作。 [IHAM]
1.0.2(2017-09-06)
- 修复了损坏的“永久链接(到剪贴板)”功能4 [恩基杜兰]
- 在setup.py中更新url,plone.org/products已不存在 [SVX]
- 从存储库中删除节点模块并添加.gitignore文件 [CEKK]
1.0.1(2017-08-09)
- 修正了查看权限。 [IHAM]
1.0.0(2017-06-28)
降低了plone 4的兼容性。
- 升级至plone5
- 使用flake8约定清理代码
- 添加测试
- 添加了控制面板
- 单击时添加javascript“复制到剪贴板” [IHAM]
0.2.1(2016-01-20)
- 使permalink尊重类型suseviewactioninlistings [PBAUER]
0.2.0(2013-04-11)
删除了plone 3兼容性
-
PLIN 4.2的进口固定
[基尔]
- 现在基于plone.uuid这个应该也能工作 对于基于灵巧性的内容 [基尔]
0.1.0(2010-07-07)
- 初始版本