Open GoogleCodeExporter opened 9 years ago
I've attached a patch for this
Original comment by cinghial...@gmail.com
on 9 Mar 2011 at 5:11
This has been removed in the latest CMS version
https://github.com/batiste/django-page-cms/commit/d9b59992b2039193a8166258efbe4b
3557c98682
Original comment by batiste....@gmail.com
on 10 Mar 2011 at 6:50
I understand why it has been removed. In three years of use of the cms I have
never needed it :)
What do you think about a new, optional, settings "PAGES_TEMPLATE_NAME_HOOK" a
callable with signature (request, page) that can freely alter the template_name?
Original comment by cinghial...@gmail.com
on 10 Mar 2011 at 11:00
Obviously, if you are interested, I can prepare a patch to implement my
suggestion.
Original comment by cinghial...@gmail.com
on 10 Mar 2011 at 11:02
That seems like a good idea! I highly welcome any sort of contribution.
You could also add a method in class pages.views.Details. The user could then
decide to subclass it if he wants. That would avoid one more of those settings.
Actually there is already the get_template method you can redefine... Is that
enough to cover your needs?
Original comment by batiste....@gmail.com
on 10 Mar 2011 at 11:42
Original issue reported on code.google.com by
cinghial...@gmail.com
on 9 Mar 2011 at 5:11Attachments: