[Radiant] HTML and XML service in a same page?
Sean Cribbs
seancribbs at gmail.com
Tue Mar 4 08:27:44 CST 2008
Kay,
You'll need to have separate pages for this. Make several layouts, one
for each type of content you want to serve (setting the content-type on
the layout), and then create a page for each type with the proper slug
and layout.
Your other option is to create an extension that serves one or more of
those types.
Sean
Kay Joo wrote:
> For my blog, I'd like to support HTML and XML simultaneously.
>
> If it's possible, I wanna write Archive page like this:
>
> <r:if_xml>
> <xml>...........
> </xml>
> </r:if_xml>
> <r:if_html>
> <html>....
> </html>
> </r:if_xml>
> <r:if_pdf>
> ~~~~
> </r:if_pdf>
>
> Then, I'll access the page with these addresses : http://mysite.net/articles,
> http://mysite.net/articles.xml, ....
>
> It's possible for rails applications easily. However, I don't know if it's
> possible on RADIANT CMS.
>
> How can I do that? Otherwise, Is there a plan to support that kind of radius
> tag?
>
> Thank you in advance~.
> _______________________________________________
> Radiant mailing list
> Post: Radiant at radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
>
More information about the Radiant
mailing list