Bitders Documentation
Bitders.comHyip ScriptTelegram SupportContact
  • Get Started
  • Installation Quide
  • Admin
    • Bitders Admin Panel
  • Front Side
    • Frontend Template System
    • FAQ Page
  • User Side
    • Title breadcrumbs
    • Dashboard
    • Invest
    • Invest Confirm
    • Active Investments
    • Transactions
Powered by GitBook
On this page
  • FAQs
  • For Simple View
  • For New way with categories
  1. Front Side

FAQ Page

You can manage your FAQ's in two Ways Simple ways to show all FAQs without categories. or you can View with the Categories.

FAQs

For Simple View

{foreach from=$faqs key=id item=faq}
    <div class="faq-item">
        <h3>{$faq.question}</h3>
        <div class="faq-answer">{$faq.answer}</div>
    </div>
{/foreach}

For New way with categories

{* New way with categories *}
{foreach from=$categorized_faqs key=category item=category_faqs}
    <div class="faq-category">
        <h2>{$category}</h2>
        {foreach from=$category_faqs item=faq}
            <div class="faq-item" id="faq-{$faq.id}">
                <h3>{$faq.question}</h3>
                <div class="faq-answer">{$faq.answer}</div>
            </div>
        {/foreach}
    </div>
{/foreach}

Explanation

  • Simple Way: This section iterates over a list of FAQs and displays each question and answer.

  • New Way with Categories: This section organizes FAQs into categories. Each category is displayed with its FAQs, and if tags are present, they are shown as well. Available Variables

  • {$faq.question}

  • {$faq.answer}

  • {$faq.id}

  • {$faq.tag}

PreviousFrontend Template SystemNextTitle breadcrumbs

Last updated 6 months ago