> Hi I'm fighting this too on Mental.
> My problem is that included pages (via r:find) have no access to the
> request.
> This is because in app/models/page.rb Page stores the request into
> instance
> variables, but the find tag will construct a new page - and
> since nobody
> will call
> process(request, response) on that, it will have these instance
> variables left on nil.
Do you need access to the request from the page objects or from the
tags? If it's just the tags:
class PageContext
alias __old_initialize initialize
def initialize(page)
__old_initialize(page)
globals.request = page.request
end
end
If you need it set on the page object for one of your tags to work, just
do the setting in that tag.
Dan.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant