google-code-export / django-page-cms

Automatically exported from code.google.com/p/django-page-cms
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Ability to call a django view prior to CMS rendered page? #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was seeking a way to call a django view prior to rendering a CMS page...
For instance to render a form or something not suitable for a tag inside a
placeholder, while still having the page managed inside the CMS admin.

Something like the example below. Just a guess how it might work.

#called for every CMS managed page.
def show_cms(request,CMS_Page,etc):
    #do stuff, read CMS_Page object to access specific info.
    #Create forms to pass into template system for instance.
    #Run some other kind of dynamic python code
    #Return page through CMS, allowing tagging in placeholders to use
variables passed on the context.
    render_through_CMS(CMS_Page, additional_context_vars)

Currently I dont think its possible to use advanced django features within
a CMS managed page. If you have a complex page design with lots of reused
components possibly managed by the CMS it can get ugly to get a non CMS
page to render and feel the same. especially when things move around if
other users are editing pages.

Only functionality from tags appears to be easy to integrate while anything
requiring a view more tricky.

Original issue reported on code.google.com by AcidTo...@gmail.com on 13 Jul 2009 at 6:04

GoogleCodeExporter commented 9 years ago
I am not quite sure what you want to do. Do you want to include the cms admin 
forms
into another application? Is that correct?

If you want to do the contrary there is a basic way to do something :

http://code.google.com/p/django-page-cms/wiki/3thPartyApps

But this 3thPartyApps code remain primitive for now.

Original comment by batiste....@gmail.com on 14 Jul 2009 at 7:24

GoogleCodeExporter commented 9 years ago
Since no feedback or other informations has never been given, this is a wontfix

Original comment by batiste....@gmail.com on 5 Oct 2009 at 4:07