0

How do I create a generic 'News' section, that would use cmsplugin_blog and be displayed on all pages. Is it possible to tell Django CMS in base.html to include the app on all pages? The content of each news entry should be displayed in the main block of the page.

My base.html looks something like this:

    ...
    {% block base_content %}
    {% endblock %}
    ...

    {% block right-column %}
    {% endblock %}

Each page that should have a news short list in the right column with links to individual news entries that should be displayed in the base content block when clicked on the link.

4

1 に答える 1

1

これを行う 1 つの方法は、公開されているがナビゲーションには含まれていないページを作成し、ブログ プラグインのインスタンスをそのページに追加し、「マスター」テンプレートでそのプレースホルダーのコンテンツを表示できるようにすることです (これにより、次のテンプレート タグを使用します:

http://django-cms.readthedocs.org/en/latest/advanced/templatetags.html#show-placeholder

于 2011-09-30T01:20:43.057 に答える