%# BEGIN LICENSE BLOCK %# %# Copyright (c) 2002-2003 Jesse Vincent %# %# This program is free software; you can redistribute it and/or modify %# it under the terms of version 2 of the GNU General Public License %# as published by the Free Software Foundation. %# %# A copy of that license should have arrived with this %# software, but in any event can be snarfed from www.gnu.org. %# %# This program is distributed in the hope that it will be useful, %# but WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %# GNU General Public License for more details. %# %# END LICENSE BLOCK <& Elements/Tabs, current_tab => 'NoAuth/RTFM/FAQs.html', Title => $title&> % while (my $art = $arts->Next) {
  • <%$art->Summary%> % }
    % while (my $art = $arts->Next) {

    <%$art->Summary%>

    <& Elements/ShowArticleInline, article => $art &> % }









    <%init> my $arts = RT::FM::ArticleCollection->new($session{'CurrentUser'}); my $class_obj = RT::FM::Class->new($session{'CurrentUser'}); $class_obj->LoadByCols(Name => $class); $arts->Limit(FIELD => 'Class', VALUE => $class_obj->Id); my $cat = RT::FM::CustomField->new($session{'CurrentUser'}); $cat->LoadByCols(Name => 'Category'); $arts->LimitCustomField( FIELD => $cat->Id, VALUE => "$category" ); my $title; if ($cat->Id && $category) { $title = loc("[_1] in category '[_2]'", $class_obj->Name, $category); } else { $title = loc('[_1]', $class_obj->Name); } <%args> $class => 'FAQs' $category => undef