e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

[Feature request]: FAQ - move HTML markup to template #5122

Open Jimmi08 opened 7 months ago

Jimmi08 commented 7 months ago

Motivation

Easier templating. With bootstrap 5 (maybe sooner) using div inside the row class breaks the layout sometimes. You can't fix it now because <div id='faqs-container'> is hardcoded in fags.php file.

I am not sure why this was done this way, but moving this code to template helped in my case.

This is just a note for somebody who will run into this issue - the faq plugin is not part of the official release.

You will not see this if you don't want FAQs in 2 columns.

Proposed Solution

This is way how I fixed it:

image

Alternatives

I tried material theme from e107.org with bootstrap5 - it uses 2 columns FAQs with bootstrap3 without issue. With bootstrap5 it is one column look - div in row class is causing this..

Additional Context

No response