[Radiant] ERB in snippets or pages?
Oliver Baltzer
oliver at nitro.glycer.in
Wed Jul 19 08:43:23 CDT 2006
On 19-Jul-2006 15:05 +0200, Andrew Hodgkinson was heard to say:
> Oliver Baltzer wrote:
>
> > What I have done in the past is to create a page with the particular
> > behavior and then create a snippet that includes the page, this snippet
> > can then be included into every other page, while original page with
> > the ERB behavior is executed in the ERB behavior context and the current
> > page you are looking at in its own behavior context.
>
> This sounds potentially cunning but I don't quite follow; how do you
> include a particular page from a snippet? Is it possible to manage
> layouts in this context, given the layout includes the ERB and parsed
> layouts are included within the scope of Behaviors?
Yes, that should be possible. You should be able to include the content of
a specific page into a layout, while this included page is rendered within
its own behavior context.
> > Of course, instead
> > of going the way through a snippet you can use <r:include> directly.
>
> My installation of Radiant 0.50 doen't recognise <r:include ... /> in
> pages or snippets.
Ooops, I ment <r:find><r:content/></r:find> so for example:
<r:find url="/search">
<r:content part="form"/>
</r:find>
That is how I am including live search in my sidebar.
Cheers,
Oliver
--
Oliver Baltzer
.web > http://nobits.org/oliver/
.pgp > 0x32B54706
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.radiantcms.org/pipermail/radiant/attachments/20060719/f5878744/attachment.bin
More information about the Radiant
mailing list