Elaborating on Mohit's suggestion...

Parent Index page:
<div class="faqlist">
<ol>
<r:children:each>
  <li><a href="#<r:slug />"><r:title /></a></li>
</r:children:each>
</ol>
</div>

<r:children:each>
<div class="faqitem">
  <a name="<r:slug />"><h3><r:title /></h3></a>
  <r:content />
</div>
</r:children:each>

Sample child page (question as the title of the page)
<p>To be or not to be, that is the question</p>

Here it is on my site: http://www.octopusgardenyoga.com/FAQ

Hope this is helpful to someone. Suggestions for improvement always welcome.

On Mon, Jun 29, 2009 at 10:34 PM, Mohit Sindhwani<t...@onghu.com> wrote:
> Jim Gay wrote:
>>
>> On Jun 25, 2009, at 3:30 PM, Merk S wrote:
>>
>>>
>>> Hi Guys,
>>>
>>> Before i write this myself, i was wondering if anyone has already worked
>>> on or is aware of an existing FAQ extension?
>>>
>>> Googling has been tough due to 'FAQ' turning up lots of helps/tutorial
>>> pages for ruby/radiant. :)
>>>
>>> thanks!!

> If you only need something like a question a page, then it's not a bad idea
> to have just an FAQ index page with each question being a question.  Then,
> at the index page, just collect the questions by doing a r:children:each and
> show the body of the child page.
>
> You could even make each of the questions an "anchor" by giving a name to
> the div.  Search a thread called " Index at top of page" in the archive to
> see what I mean.
>
> Cheers,
> Mohit.
> 6/30/2009 | 10:34 AM.
>
>
>
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>

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

Reply via email to