[Radiant] How can i display a particular part of a page?

Sean Cribbs seancribbs at gmail.com
Thu Nov 30 10:29:36 CST 2006


If you made the 'parts' into child pages, you could do this:

<r:children:each>
  <a class="partlink" href="#<r:slug />">Go to part <r:slug /> of the
list</a>
</r:children:each>
...

<r:children:each>
  <div id="<r:slug />">
    <r:content />
  </div>
</r:children:each>

Cheers,
Sean

On 11/30/06, Tino Breddin <tino.breddin at googlemail.com> wrote:
>
> I think i didn't explain my problem so well. I want to display parts
> depending on the url. I have a page with e.g. 4 parts. This page will
> never be displayed as a whole, but only one part at a time. Or should
> i create one page for every part? Would this be a better solution?
>
> Thanks,
> Tino
>
> 2006/11/30, Sean Cribbs <seancribbs at gmail.com>:
> > Use <r:content part="parta" /> to display the part.  If you want to
> create
> > an anchor too, either put it in the first containing block of that part,
> or
> > do something like this:
> >
> > <div id="parta"><r:content part="parta" /></div>
> >
> > Sean Cribbs
> > seancribbs.com
> >
> >
> > On 11/30/06, Tino Breddin <tino.breddin at googlemail.com > wrote:
> > >
> > > Hi,
> > >
> > > i have several links which point to the same page but different parts
> > like:
> > >
> > > <a class="partlink" href="/list#parta">Go to part a of the list</a>
> > >
> > > But i do not know how i manage to display the requested part. Can
> someone
> > help?
> > >
> > > Bye,
> > > Tino
> > > _______________________________________________
> > > Radiant mailing list
> > > Post:   Radiant at lists.radiantcms.org
> > > Search: http://radiantcms.org/mailing-list/search/
> > > Site:
> > http://lists.radiantcms.org/mailman/listinfo/radiant
> > >
> >
> >
> > _______________________________________________
> > Radiant mailing list
> > Post:   Radiant at lists.radiantcms.org
> > Search: http://radiantcms.org/mailing-list/search/
> > Site:
> > http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> >
> _______________________________________________
> Radiant mailing list
> Post:   Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20061130/0d9d01f4/attachment.html


More information about the Radiant mailing list