[Radiant] share_layouts extension and filters

2009-03-10 Thread Remko Steenstra

Hello everyone,

I have a question about the share_layouts extension. I am using it on a 
site that has the defaults.page.filter set to Textile. Consequently the 
content generated by my custom controllers and views is rendered out as 
Textile, which is not what I had in mind.


Is there a way to override this behaviour? Can I set the page part 
filter from my extension somehow?


I have read Sean's post about creating 'endpoint' pages, but my routes 
are dynamic so I can't create pages/page_parts for them.


Cheers,

Remko

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] rendering pages from a rake task

2009-02-09 Thread Remko Steenstra

Hi all,

I am working on an extension that needs to render pages as part of a
rake task. This works, but I have run into a problem when using r:url
in my content. Because there is no request object, the relative_url_for
method in standard_tags.rb throws an Exception. As a workaround, I've
monkey-patched my Radiant (see below).

Is there a better solution? Am I missing something obvious?

Thanks!
Remko

standard_tags.rb:
def relative_url_for(url, request)
 root = request.relative_url_root rescue ''
 File.join(root, url)
end



___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant