Skip to content

Add PrettyBlocks FAQ selection block and allowlist template#904

Merged
CySSoO merged 1 commit intomasterfrom
cyssoo/add-prettyblock-with-faq-repeater-wy83hk
Feb 2, 2026
Merged

Add PrettyBlocks FAQ selection block and allowlist template#904
CySSoO merged 1 commit intomasterfrom
cyssoo/add-prettyblock-with-faq-repeater-wy83hk

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Feb 2, 2026

Motivation

  • Provide a PrettyBlocks block that lets editors pick registered FAQ entries via a repeater selector so selected FAQs can be displayed as an accordion using existing FAQ markup and schema.
  • Ensure the new PrettyBlocks template file is recognized by the module by adding it to the module allowlist.

Description

  • Register a new block everblock_faq_selection in src/Service/EverblockPrettyBlocks.php and expose a faq selector via the EverblockFaq collection for use in the block repeater.
  • Add views/templates/hook/prettyblocks/prettyblock_faq_selection.tpl which resolves selected FAQ IDs, loads entries with EverblockFaq::getByIds, and includes the existing module:everblock/views/templates/hook/faq.tpl for rendering.
  • Add the new template path to config/allowed_files.php so the template is included in the module allowlist.

Testing

  • No automated tests were run for this change (not requested).

Codex Task

@CySSoO CySSoO merged commit 634e894 into master Feb 2, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant