Download the PHP package oliverthiele/ot-faq without Composer

On this page you can find all versions of the php package oliverthiele/ot-faq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ot-faq

OT FAQ — TYPO3 FAQ Extension with Structured Data

A FAQ extension for TYPO3 v13 and v14 that renders an accessible Bootstrap 5 accordion and automatically outputs valid Schema.org FAQPage JSON-LD structured data for Google Rich Results.

TYPO3 Packagist Version PHP


Features


Requirements

Requirement Version
TYPO3 ^13.4 \| ^14.3
PHP >=8.3
Bootstrap 5.x

Installation

Then run the TYPO3 database analyser or setup command:


Configuration

1. Add SiteSet

Include the SiteSet in your site configuration (config/sites/yoursite/config.yaml):

This automatically includes the TypoScript setup and constants — no manual @import needed.

2. Add a FAQ content element

In the TYPO3 backend, insert a FAQ content element (group: Extras) on the page where the FAQ should appear.

The plugin outputs one accordion per content element. Questions are managed separately in the List module on the same page (or on a configured storage page).

3. Create questions

In the List module, switch to the FAQ storage page and create tx_otfaq_domain_model_question records. Each record holds:


Google FAQ Guidelines

Follow the Google FAQPage structured data guidelines:

The answer field uses a restricted CKEditor preset that only allows the HTML tags Google permits in FAQ structured data: a, b, br, div, em, h2, h3, h4, i, li, ol, p, strong, ul


ot-irrebuttons Integration (optional)

When oliverthiele/ot-irrebuttons is installed:

Partial path priority

The extension uses a layered fallback for partial resolution:

Index Source Content
0 EXT:ot_faq Minimal IrreButtons.html + empty Icon.html (last resort)
15 EXT:ot_irrebuttons Full implementation with Bootstrap Icons
80 Your SitePackage Project-specific icon system (recommended)

No sitepackage configuration is required for basic button output. Icons will use Bootstrap Icon class names (bi bi-*) by default — only relevant if Bootstrap Icons CSS is loaded in your project.

Providing a custom icon renderer

To replace the default Bootstrap Icons with your own icon system, add an Icon.html partial in your sitepackage:

The partial receives {iconIdentifier} as an argument. Example using oliverthiele/ot-icons:

Or using Bootstrap Icons directly (which is the default from ot-irrebuttons):


Template Customisation

The extension follows TYPO3's template override convention. Override paths in your sitepackage TypoScript:

Available template variables

Variable Type Description
{questions} ObjectStorage<Question> All question records for this content element
{data} array The tt_content record of the current content element
{settings} array FlexForm settings (accordionFlush, initialView, alwaysOpen, disableStructuredData)
{json} string Pre-encoded JSON-LD string for the FAQPage schema

Question model properties

Property Getter Description
question getQuestion() Question text
answer getAnswer() HTML answer (RTE, already processed)
link getLink() Optional link (typolink format)
irreButtons getIrreButtons() Button records from ot-irrebuttons (runtime, not persisted)
relatedQuestions getRelatedQuestions() Related question records
tags getTags() Tag records

FlexForm Options

Option Description
Storage page PID of the page where question records are stored
Accordion flush Remove borders and rounded corners (Bootstrap accordion-flush)
Initial view Open first question on page load, or start with all collapsed
Always open Allow multiple accordion items open simultaneously
Disable structured data Suppress JSON-LD output for this content element

License

GPL-2.0-or-later — see LICENSE

Author

Oliver Thiele — oliver-thiele.de


All versions of ot-faq with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-json Version *
typo3/cms-core Version ^13.4||^14.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package oliverthiele/ot-faq contains the following files

Loading the files please wait ...