معرفی شرکت ها


collective.portlet.colorcollection-0.3.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Replace some code of the Plone collection portlet to add links color
ویژگی مقدار
سیستم عامل -
نام فایل collective.portlet.colorcollection-0.3.0
نام collective.portlet.colorcollection
نسخه کتابخانه 0.3.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده RedTurtle Technology
ایمیل نویسنده sviluppoplone@redturtle.it
آدرس صفحه اصلی http://plone.org/products/collective.portlet.colorcollection
آدرس اینترنتی https://pypi.org/project/collective.portlet.colorcollection/
مجوز GPL
Introduction ============ Change the renderer of your Plone collection portlet, trying to force a link color using a ``style="color: ..."`` attribute. How to use ========== This product is for *developers*. It only add a catalog column (*color*) and change the basic Collection Plone renderer to check for this color. Installing this won't add any real new colors in collection portlets (and we don't want ... normally color must came from site UI theme, not contents). How support colors ------------------ You can: Support for a ``color`` property Add to your content types a new ``color`` method or property. Support for a ``color`` @indexer Add an indexer that return the color you want: >>> from plone.indexer.decorator import indexer >>> @indexer(IMyType) >>> def color(object, **kw): ... return 'red' See `Custom indexing strategies`__ on Plone documentation section. __ http://plone.org/documentation/manual/developer-manual/indexing-and-searching/custom-indexing-strategies The color format must be CSS valid. So: 'red', '#FF0000', '#F00' or 'rgb(255,0,0)' are all good values. If you return a string that starts with 'class-' (like 'class-foo'), this doesn't apply the style attribute but a ``class="foo"`` attribute. Credits ======= Developed with the support of `S. Anna Hospital, Ferrara`__; S. Anna Hospital supports the `PloneGov initiative`__. .. image:: http://www.ospfe.it/ospfe-logo.jpg :alt: OspFE logo __ http://www.ospfe.it/ __ http://www.plonegov.it/ Authors ======= This product was developed by RedTurtle Technology team. .. image:: http://www.redturtle.it/redturtle_banner.png :alt: RedTurtle Technology Site :target: http://www.redturtle.it/ Changelog ========= 0.3.0 (2013-02-13) ------------------ - Added class attribute support [fdelia] - Portlet was looking for a non-existings attribute [fdelia] 0.2.0 (2012-11-28) ------------------ * Fixed Plone 4 compatibility [micecchi] * Fixed portletRenderer customization. Now is registered with the class (Assignment) and not with the interface (ICollectionPortlet). In this way, the custom renderer is registered only for that class (base collection portlet) and not for all the portlets that implements ICollectionPortlet (for example a custom collection portlet). [micecchi] 0.1.0 (2011-12-16) ------------------ * Initial release [keul]


نحوه نصب


نصب پکیج whl collective.portlet.colorcollection-0.3.0:

    pip install collective.portlet.colorcollection-0.3.0.whl


نصب پکیج tar.gz collective.portlet.colorcollection-0.3.0:

    pip install collective.portlet.colorcollection-0.3.0.tar.gz