Monday 28 November 2005 9:22:38 pm
Hi, When i click the FAQ link from left menu it should list the FAQ title's for the particular FAQ Group. I have created a custom FAQ class with the following fields,
FAQ Class:
faqtitle : textline,
faqGroup : single choice selection
faqQuestion : textblock faqAnswer : textblock FAQ group is the section name that i provided in faqGroup selection.
<div class="pagetitle">
FAQs </div>
{* Grab all the FAQs based on the FAQ Group ID. *}
{let children=fetch( content,
list,
hash( parent_node_id, 174,
attribute_filter, array( array(
'/faq/faqgroup',
'=',
'1' ) ), sort_by, $node.sort_array )) }
{* Loop through all articles that we just fetched. *}
{section name=Child loop=$children }
{let children=fetch( content,
list,
hash( parent_node_id, 174,
sort_by, $node.sort_array )) }
{* Display a link to the article. *}
<a href={$:item.url_alias|ezurl} >
{$:item.name} </a> <br />
{* End of loop. *}
{/section} {/let}
I am trying to retrieve the FAQ articles for the First section by providing a static value '1' for the attribute 'faqgroup' in faq class . 174 is node id for FAQ folder. If i remove this attribute_filter line..All faqs are listed..
Kindly Help, Regards..
|