Skip to content

A FAQ plugin for October, allows multiple FAQs with reordering of questions

License

Notifications You must be signed in to change notification settings

alexwenzel/octoberfaqs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

october FAQs

  • create / manage FAQs
  • display FAQs with components
  • schema.org definition included (read more)

create a FAQ

  • Choose the FAQ icon from the nav bar
  • Click New FAQ
  • Optionally give the FAQ a name
  • Add questions by clicking the Add Question button and filling out the form
  • Save the FAQ and make a note of the Id number that is created

To reorder the questions, make sure you have saved the FAQ first and then click the "Reorder Question" and drag the questions to the correct order and hit save.

display a specific FAQ

In your template add the FAQ component and set the FAQ to the Id/slug you want to display

[faq]
slug = "mySlug"

and then use the faq component to display the specific faq

{% component 'faq' %}

display a list of all FAQs

Add the faqlist component to your page

[faqlist]

and query all faq lists like this.

{% for item in faqlist.all %}
    #{{ item.id }} {{ item.name }}
{% endfor %}

or override the default component template.

About

A FAQ plugin for October, allows multiple FAQs with reordering of questions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 69.3%
  • HTML 30.7%