{ "info": { "author": "Luca Fabbri", "author_email": "luca@keul.it", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Plone", "Framework :: Plone :: 3.3", "Programming Language :: Python" ], "description": "Introduction\n============\n\nThis product is done *only* for Plone 3. It backports the Plone 4 **related contents** viewlet to old\nPlone 3 versions. Do not install this on Plone 4. Really.\n\nYou could need this package if and only if you have a product that you want to be compatible with\nPlone 3 and Plone 4, keeping the content's view template at the Plone 4 style.\n\nProduct details\n===============\n\nOne of the most problematic change done in Plone 4 is the removal of related contents area from\ncommon views, replaced with a more flexible viewlet.\n\nCommonly every Plone 3 contents view contains a part of code like this::\n\n ...\n
\n show related items if they exist\n
\n ...\n\nRemoving this code and transform this as a viewlet has been a great change. However this is a problem for\ndevelopers that still take care of Plone 3 compatibility:\n\n* If we keep the \"Plone 3 style\" template (as above) we will see a *doubled related contents* area on\n Plone 4.\n* If we remove the related contents part from our template, we won't see related contents in Plone 3\n (so we removed part of our compatibility).\n\nBut we can do better. This product gives to Plone a related items viewlet (as Plone 4 do) compatible\nwith Plone 3, keeping Plone 3 CSS styles.\n\nWhat you need is to update your template to Plone 4 layout (removing the explicit related items area) but\nmake it compatible with this product.\n\nGuide for 3rd party products\n----------------------------\n\nIf you want to fix a 3rd party product that is already using the Plone 4 related items style, so you don't\nsee related anymore when using it on Plone 3, you simply need fix your buildout:\n\n* add ``collective.relateditems`` to you eggs\n* add to a .zcml this piece of code (explicitly in one of yours packages, or using `zcml-additional`__)::\n\n \n \n \n \n\n__ http://pypi.python.org/pypi/plone.recipe.zope2instance#advanced-zcml-options\n\nNote that you don't need to change anything inside the 3rd party code.\n\nGuide for products you own\n--------------------------\n\nIf you are a product developer and you want to make your product fully compatible with Plone 4 but also\nPlone 3, your can also choose to hide to your users all configuration difficulties.\nYou need to change something in your code.\n\nFirst of all, you need to make your product based on ``collective.relateditems`` only when you are in a\nPlone 3 environment. The common way is to check the Python version in your ``setup.py``::\n\n >>> import os, sys\n ...\n >>> install_requires = ['setuptools',\n ... 'Products.CMFPlone',\n ... # other dependencies\n ... ]\n ...\n >>> if sys.version_info < (2, 6):\n ... install_requires.append('collective.relateditems')\n\nThen the product definition::\n\n >>> setup(name='your.product',\n ... # more\n ... install_requires=install_requires,\n ... #more\n ... )\n\nAfter that you need to proper define your ``configure.zcml``::\n\n \n \n\t \n \n \n \n\nYou can also make your ``YourContentClass`` Python class implementing the ``IRelatedItemsEnabledContent`` but\nyou still need to remember that Plone 4 environment will not have this interface available.\n\nThat's all.\n\nChangelog\n=========\n\n0.1.0 (2011-12-29)\n------------------\n\n* Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://plone.org/products/collective.relateditems", "keywords": "plone related-items backport viewlet", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "collective.relateditems", "package_url": "https://pypi.org/project/collective.relateditems/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.relateditems/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://plone.org/products/collective.relateditems" }, "release_url": "https://pypi.org/project/collective.relateditems/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Backporting Plone 4 related items viewlet into Plone 3", "version": "0.1.0" }, "last_serial": 788167, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "99cfa7cf98447e174bee73f65837b592", "sha256": "a4cacac673b0986a198621d957715189e6174211a15abfe59dbecc8597cf6f2c" }, "downloads": -1, "filename": "collective.relateditems-0.1.0.tar.gz", "has_sig": false, "md5_digest": "99cfa7cf98447e174bee73f65837b592", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14492, "upload_time": "2011-12-29T23:14:23", "url": "https://files.pythonhosted.org/packages/c3/88/f7e0f4958fac84be2c4c44d3f53073089e30c22a4335f38755a0a1bece0e/collective.relateditems-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "99cfa7cf98447e174bee73f65837b592", "sha256": "a4cacac673b0986a198621d957715189e6174211a15abfe59dbecc8597cf6f2c" }, "downloads": -1, "filename": "collective.relateditems-0.1.0.tar.gz", "has_sig": false, "md5_digest": "99cfa7cf98447e174bee73f65837b592", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14492, "upload_time": "2011-12-29T23:14:23", "url": "https://files.pythonhosted.org/packages/c3/88/f7e0f4958fac84be2c4c44d3f53073089e30c22a4335f38755a0a1bece0e/collective.relateditems-0.1.0.tar.gz" } ] }