# Contact Form
urlpatterns += patterns('contact_form.views',
url(r'^contact$', "contact_form", { 'success_url':
'contact-thank-you', "form_class" : MyContactForm }, name='contact_form'),
url(r'^contact-thank-you$', direct_to_template, { 'template':
'contact_form/contact_form_sent.html' }, name='contact_form_sent'),
)
# LFC Blog
urlpatterns += patterns("",
(r'', include('lfc_blog.urls')),
)
# LFC
urlpatterns += patterns('',
(r'^manage/', include('lfc.manage.urls')),
(r'', include('lfc.urls')),
)
> Looks like ContentType (with portlets and others) are static things, so
> I can't do forms with validation and things with them. As much as
> creating of new views is quite restricted.
I'm not sure what you mean... what are static things?
--
Maciej Wisniowski
http://natcam.pl
2011/2/15 Maciej Wisniowski <pigl...@gmail.com>:
Changing existing LFC codebase isn't the best way for me to do it.
I need to do it in a separate app, but can't see any way to make LFC
look for urls.py or views.py in my app. Looks like if there's no
straight way to do it, I'd have to somehow monkey patch urlhandler to
consider my urls, not LFC defaults.
>
>
>> Looks like ContentType (with portlets and others) are static things, so
>> I can't do forms with validation and things with them. As much as
>> creating of new views is quite restricted.
>
> I'm not sure what you mean... what are static things?
I mean they are used to show some kind of content but are not good
user interaction (filling forms, validating and showing errors to give
opportunity to fix them). Maybe there's somewhere an example of using
forms in LFC ContentTypes like polls or user comments for an article?
>
>
> --
> Maciej Wisniowski
> http://natcam.pl
>
--
Boryslav Larin
063 272 21 44 | bra...@gmail.com
Twitter: http://twitter.com/brabadu
Thanks, Maciej! Sorted it out. That's right what I needed.
>
> --
> Maciej Wisniowski
> http://natcam.pl
>
--