gregplaysguitar / djangocms2000

Flexible Django CMS with edit-in-place capability. Master branch is stable
http://gregbrown.co.nz/code/djangocms2000/
Other
8 stars 8 forks source link

New pages are created for dynamic pages #1

Closed fijter closed 14 years ago

fijter commented 14 years ago

Pages like /contact work fine, But once I edit specific instances, for example: /product/product-1/ it creates a new page, and when I open another page like /product/product-2/ (same template, different product) it creates another new page. This is unworkable if you want dynamic pages and you would expect it to use the templates as a identifier here, not the url.

gregplaysguitar commented 14 years ago

Hi there, my approach to solve this problem is to use the cmssiteblock tag - ie

{% cmssiteblock "product-page-title" "plain" %}

which is a site-wide block, ie not attached to any Page instance. Let me know if that solves you problem. I have considered a cmstemplateblock tag which would work as you say - I could possibly add that in at some point.

gregplaysguitar commented 14 years ago

(another undocumented tag which you might find useful is cmsgenericblock, which lets you attach a block to an instance of an arbitrary model, ie Product.

fijter commented 14 years ago

thanks, the cmssiteblock tag is what I needed, thanks :)