Thanks for your answer Batiste!
But that's not exactly what I'm looking for. The basic idea is that
admin can add a custom application anywhere on the page-tree. Instead
of the content user can write with page-cms' wysiwyg editor, the page
shows the content created by that chosen application.
For example:
My news application's urls.py looks like this:
urlpatterns = patterns('',
(r'^$', 'news.views.Listnews'),
(r'^(?P<year>\d+)/$', 'news.views.ShowYear'),
(r'^(?P<year>\d+)/(?P<month>\d+)/$', 'news.views.ShowMonth'),
(r'^(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/$',
'news.views.ShowDay'),
(r'^(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/(?P<title>[A-Za-z]
+)/$', 'news.views.ShowDetails'),
)
So when navigated to ie '/news/2009/4/' this application shows the
news created in april 2009. '/news/2009/4/8/Coding' would show the
news which has a title 'Coding' and it was created 8.4.2009 etc etc.
This is basics, understood this far? Ok, so..
When the admin creates a new page, he chooses this news application
from the dropdown and chooses to write LatestNews for slug. So when he
navigated '/LatestNews/', the public site would have all the
navigation menu etc the same, but instead of normal written content,
it shows the content created by 'news/' but '/LatestNews/' stays in
the url. Ok? And so on, '/LatestNews/2009/4/' shows the news created
on april in the content area on the template.
/ Joni
On 8 huhti, 13:29, Batiste Bieler <
batiste.bie...@gmail.com> wrote:
> Hello,
>
> For integrating this CMS with 3rd party apps there this rough and
> simple app connection feature :
>
>
http://code.google.com/p/django-page-cms/wiki/3thPartyApps
>
> But it definitely need some working to be more useful. I don't if it's
> the path you want to follow...
> Can you make some sketch, or a use case of what the user would expect
> when a "News" page is created?
>
> An idea: Each news could have a page ForeigneKey, you can create your
> news with your news app and liken them to some pages. Then you adapt
> your view to get the new and display them in the template? What do you
> think about that? What can we do in a better way?
>