Changed pages in django cms
June 30, 2016, 5:02 a.m.
For finding of changed pages (or dirty pages) you can use Title model:
dirty_titles = Title.objects.filter(publisher_is_draft=True, publisher_state=PUBLISHER_STATE_DIRTY)
Result can displayed as like:
{% if dirty_titles %}
    <p style="font-weight: bold;">Dirty pages:</p>
    {% for title in dirty_titles %}
        <p class="changelink"><a target="_blank" href="{{ title.page.get_absolute_url }}">{{ title.page.get_title }}</a></p>
    {% endfor %}
{% endif %}
If you have multilanguage site, then you need provide group by languages (this property is in instance of Title class). Or you can display your result as like page structure in django cms.
I use my solution for display in information block "Notification" to notify about unpublished changes on pages.
 
                                    
                                    
                                
Comments: 0