How to install slc.linkcollection
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install slc.linkcollection
Lastest release
Project Description
Contents
- Code repository: http://svn.plone.org/svn/collective/slc.linkcollection
- Questions and comments to info (at) syslab (dot) com
- Report bugs at http://plone.org/products/slc.linkcollection
Credits
Copyright European Agency for Health and Safety at Work and Syslab.com GmbH.
slc.linkcollection development was funded by the European Agency for Health and Safety at Work.
License
slc.linkcollection is licensed under the GNU Lesser Generic Public License, version 2 or later and EUPL version 1.1 only. The complete license texts can be found in docs/LICENSE.GPL and docs/LICENSE.EUPL.
Change history
slc.linkcollection Changelog
1.4.1 (2012-09-17)
- Plone 4
1.4.0 (2011-11-29)
- Minor changes for Plone4 compatibility [thomasw]
1.3.7 (2011-05-19)
- Added "slow" scrolling to anchors for jQuery based version [thomasw]
1.3.6 (2011-05-18)
- New jquery-ui based link collection: simply assign class "linkcollection" to a number of h2 tags. SEO improvement, refs #2830 [thomasw]
1.3.5 (2011-01-24)
- Added new styles to linkbox, provided by cornae. Reference: Syslab #1152 [cornae, thomasw]
- Added anchor and corresponding "Go up" link. Reference: Syslab #1152 [thomasw]
1.3.4 (2010-11-23)
- deactivated setting the div's height to maxheight #253 [thomasw]
1.3.3 (2010-10-21)
- set a class denoting the currently selected item also on the <li>, not only on the <a> tag [thomasw]
- Nothing changed yet.
- Bug fix: the parent folder could be selected as a link even though it isn't a document
- Feature: scroll to the top of the linkbox when a document is displayed without causing the page to jump up and down for longer and shorter documents.
- linkcollection can now also be used on ATFolders. For the Annotations-factory, I had to use a somewhat awkward naming & inheritance construct, so as not to break existing linkcollection instances.
- added a BrowserView (linkcollection-view) for displaying contents of a Linkcollection
- enhanced search mechanism to distinguish between folder and document (thomasw)
- added an id to the linkcollection prefetched docs so that they can be fetched by the linkscanner (pilz)
- small fix for a bug with empty append
- Fixed problem where LC references a non existing doc but still appends it to the list (pilz)
- test fixes (gerken)
- Packaged egg (pilz)
- Initial port
Detailed Documentation
Link Collection Viewlet
This package provides a little viewlet which displays links to other documents. If you click the links, the body of the referenced document is loaded into the current page using kss. By default the viewlet is placed between description and body text of a document. It shows only if the current context does reference some other documents.
Login into the portal:
>>> from plone.app.testing import setRoles, login, TEST_USER_ID, TEST_USER_NAME >>> portal = layer['portal'] >>> setRoles(portal, TEST_USER_ID, ['Manager']) >>> login(portal, TEST_USER_NAME)
Create a document:
>>> doc = portal.invokeFactory('Document', 'maindoc') >>> maindoc = portal.maindoc
While logged in with Modify portal contents permissions, you will see a small edit icon where you can manage the references. They will be stored using annotations on the current context.
>>> from slc.linkcollection.interfaces import ILinkList >>> ILinkList(maindoc).urls []
tbc
Contributors
- Alexander Pilz (Syslab.com GmbH)
- Cillian de Roiste (Syslab.com GmbH)
- Jan Carel Brand (Syslab.com GmbH)
- Patrick Gerken (Syslab.com GmbH)
- Wolfgang Thomas (Syslab.com GmbH)
- Cornelis Kolbach (Cornae.org)