An advanced ATLink version, with image field and internal link feature
Project description
An enhanced version of the base Plone link content type.
After intalling this you’ll see that the Plone link will have a new image field and caption like the News Item content type.
As News Item do, the Link now behave image resize feature.
Also the new Link type can handle internal (to Plone contents) and external links. You can use the internal link field to automatically attach the link value to an internal content of the portal (in a similar way used for related contents).
An event-based system will also keep URLs updated even when you move/rename target document.
Handle backend/frontend URLs
The Smart Link structure is nothing more that a ATLink content, so the way used to store URL in the object or in the portal_catalog is the same as Plone does. There is no magic behind.
For this reason, when you are using Smart Link for internal references, the static URL is stored and used.
This will lead to problems when you are using this product for site where you have different backend/frontend URLs. For this reason you must use the “Configure Smart Link” control panel to handle URL transformation.
You can also use a control that say to Smart Link to store relative URLs but this will also include the Plone site id (and you must rewrite this from Apache if you don’t like this).
Warning 1
Smart Link shapechange itself and hide from portal_types tool the basic Plone Link type!
Warning 2
Pay attention when you update the whole portal_catalog using ZMI from URLs different from backend or frontend ones (for example: using a tunnel).
If you run the update from (for example) “localhost:8090/site” and this URL is not the public or backend URL, all your internal links will be changed to this hostname!
Another catalog update (from the right URL) will fix this.
FileSystemStorage
The product try to register the link image field onto iw.fss if it’s installed.
Credits
Part of the code of Smart Link was taken from the ComboLink Plone (and Plonegov) product. This project was giving the same internal link feature in old 2.1/2.5 Plone releases.
TODO
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for redturtle.smartlink-0.7.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4d4e9a4a88b468dbcffd1fefee183ed5d499395d8ca09337c13f8c3029b9e90 |
|
MD5 | fdfbb31241ecf0854bc7ab191d1e90f2 |
|
BLAKE2b-256 | c9c4ac46b1cd96965275bd59a5304f582417867a4295f7948929890640f2af96 |
Hashes for redturtle.smartlink-0.7.2-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68952f6ea29427d393ba2ec44eb559b4f85094231da9500be26452301e7a489c |
|
MD5 | 3aacdd269ec02e0e2cc3c9622f5830ac |
|
BLAKE2b-256 | cbadc1fd359f55612f0e585a53ee8cfb5ba6a83c8841f7df1b8b73d22c13c0f1 |