[Radiant] Extended content in distributed example

Anton Aylward anton at si.on.ca
Sun Jan 28 14:30:51 CST 2007


Sean Cribbs said the following on 01/28/2007 02:14 PM:
> 
> In the layout of your child page (which might be the same as the parent) 
> you need to render the "extended" part.  So somewhere in the layout, you 
> should find something like this:
> 
> <r:content />
> <r:if_content part="extended">
>   <div id="extended">
>     <r:content part="extended" />
>   </div>
> </r:if_content>
> 
> The first line renders the "body" part, then, if there is an "extended" 
> part, it is rendered inside a div with an anchor named "extended".

So it wasn't me, the distributed example was buggy.

I can see that will render the extended part as well as body.
I'm confused!

I've just set up Mental along side the Radiant-0.5.2
In the out of the box Mental adding a 'extended' tab to 'First Post'
results in
    The parent blog format shows third, second and first posts
    The parent view has 'first post' showing:

         First Post

        This post uses textile.
        Continue Reading…                    <-- LINK

        Posted by on Jun 09, 2006

    The link is to   http://server:3000/articles/2006/06/09/first-post/#extended
    Clicking on the link takes me to 'first post'
    which shows.


        First Post

        This post uses textile.
        This is extended content

        Posted by on Friday, June 09, 2006


    Which (a) is not what I expected because (b)
    the main part *and* the extended content are shown.
    I don't see anything that would cause this.

The side-by-side 0.5.2 doesn't behave that way.
clicking on the 'Continue reading' link brings up, as I said, a page with
that same url, but is not displaying *either* the extended content *or* the
main body.

REPEAT: Mental and 0.5.2. have different behaviours
REPEAT: I don't think either behaviour is correct.

This doesn't make sense to me.
In the layout the code to display the sidebar doesn't cause the main body to
be displayed in the sidebar.

I continue to be confused but am coming to believe the problem
is not my ignorance though it may be my assumptions.


-- 
/anton
Cats regard people as warm-blooded furniture.  --Jacquelyn Mitchard



More information about the Radiant mailing list