views:

86

answers:

1

Hello!

I have a latest news plugin for django-cms.

I want to show 5 latest news in footer. Footer placed in every page of site.

How i can render this plugin in every page?

+1  A: 

There are some template tags that should help you achieve what you are trying to do:

{% placeholder "footer" inherit %}

should inherit its content from pages above in the hierarchy, or you can render a place holder from another page with

{% show_placeholder "footer" "home" %}

you can also make a combination like

   {% placeholder "footer" or %}
   {% show_placeholder "footer" "home" %}
   {% endplaceholder %}

which will normally render the contents of the placeholder "footer" from page "home", but if you place something in the placeholder of the current page it will render this content!

lazerscience
Thanks. I choose to use http://github.com/divio/django-contentblock
Chupa
Yes a choice that makes also sense!
lazerscience