Metadata-Version: 1.1
Name: djangocms-placeholder-attr
Version: 1.0.2
Summary: Allow you to call a plugin model attribute from a placeholder in django-cms
Home-page: https://github.com/WnP/djangocms-placeholder-attr
Author: Steeve
Author-email: mo0ofier@gmail.com
License: MIT
Description: Django CMS Placeholder Attribute
        ================================
        
        Description
        ===========
        
        ``djangocms-placeholder-attr`` allow you to call a plugin model
        attribute from a placeholder in
        `django-cms <https://github.com/divio/django-cms>`__
        
        Depends
        =======
        
        -  `django-cms <https://github.com/divio/django-cms>`__
        
        Installation
        ============
        
        -  use pip ``pip install djangocms-placeholder-attr``
        -  Put in your INSTALLED\_APPS:
           ``INSTALLED_APPS += ('djangocms-placeholder-attr', )``
        
        Usage
        =====
        
        ``cms_placeholder_attr`` provide two tags ``placeholder_attr`` and
        ``show_placeholder_attr`` which are similar to django-cms
        ``placeholder`` and ``show_placeholder`` tags, but plugin model
        oriented.
        
        -  ``placeholder_attr``
        
        .. code:: django
        
            {% placeholder_attr 'placeholder_name' 'plugin_model_class_name' 'model_attribute_name' %}
        
        -  ``show_placeholder_attr``
        
        .. code:: django
        
            {% show_placeholder_attr 'placeholder_name' 'placeholder_id' 'plugin_model_class_name' 'model_attribute_name' %}
        
        Be sure to have a placeholder named ``placeholder_name`` to use this
        plugin.
        
        if you have a foreign key attribute you can use the following syntax:
        ``my_fk_attribute.an_attribute_from_the_fk``
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
