Show a new link (permalink) in Plone contents. This will not change if you move the content itself.
Project description
collective.permalink
This adds a permalink to every supported Plone content. A permalink is a link to the content that should never change even if you rename or move it.
Features
Permalink as object action or as document action
javascript copy to clipboard on click event
Translations
This addon has been translated into
English
Development setup
Assuming you have a clean python 2.7 with virtualenv and pip:
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
Running instance:
instance fg
Running code-analysis:
code-analysis
Running tests:
./bin/test -s collective.permalink
Usage in other project
Use as egg via buildout
Install collective.permalink by adding it to your buildout.cfg:
[instance] recipe = plone.recipe.zope2instance ... eggs = ... collective.permalink ...
Use as egg via setup.py
Install collective.permalink by adding it to your setup.py:
install_requires=[ ... 'collective.permalink', ... ]
Use as source via buildout
Install collective.permalink by adding it to your buildout.cfg mr.developer is needed!:
[sources] collective.permalink = git https://github.com/collective/collective.permalink.git ...
and then running buildout
How to use
The default implementation is based on the Plone resolveuid feature. This will not work (and shows anything) for contents without the plone.uuid support. You can however customize and develop additional adapters for providing permalink for yours types (or customize the default one).
The new resource will be added to the document actions section.
Credits
Developed with the support of Azienda USL Ferrara; Azienda USL Ferrara supports the PloneGov initiative.
Contribute
Issue Tracker: https://github.com/collective/collective.permalink.git/issues
Source Code: https://github.com/collective/collective.permalink.git
License
The project is licensed under the GPLv2.
Contributors
Red Turtle
Markus Hilbert, markus.hilbert@iham.at
Sven Strack, sven@so36.net
Changelog
1.0.5 (2018-03-22)
fix js error. [iham]
1.0.4 (2018-03-21)
pypi version confusion… nevermind. v 1.0.3 was removed. [iham]
1.0.3 (2018-03-21)
fixed resource registration to make it work with plone-resource-compile. [iham]
1.0.2 (2017-09-06)
fixed Broken “Permalink (to Clipboard)” functionality #4 [enkidulan]
update url in setup.py, plone.org/products is gone [svx]
remove node_modules from repository and add .gitignore file [cekk]
1.0.1 (2017-08-09)
fixed permission for view. [iham]
1.0.0 (2017-06-28)
Dropped Plone 4 compatibility.
upgrade to Plone5
clean up code using flake8 conventions
added tests
added controlpanel
added javascript “copy to clipboard” on click [iham]
0.2.1 (2016-01-20)
make permalink respect typesUseViewActionInListings [pbauer]
0.2.0 (2013-04-11)
Dropped Plone 3 compatibility
Fixing import for Plone 4.2 [keul]
Now based on plone.uuid to this should work also for dexterity based contents [keul]
0.1.0 (2010-07-07)
initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file collective.permalink-1.0.5.tar.gz
.
File metadata
- Download URL: collective.permalink-1.0.5.tar.gz
- Upload date:
- Size: 3.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614700508fcfcd50d0dfe28eb79747cb79c77d8f372ac8e388642f9319a72b65 |
|
MD5 | 594f489eda9b5b2e519c10998bd8f409 |
|
BLAKE2b-256 | 86ec57ca9d57959efebb960f30f78ed4b4f6c9d065219db1bfcca04caf8b27ac |