flatpressblog / flatpress

FlatPress is a lightweight, easy-to-set-up flat-file blogging engine.
https://flatpress.org
GNU General Public License v2.0
187 stars 57 forks source link

BBcode plugin: Support of subdirectories for image and file selection #435

Open Fraenkiman opened 3 months ago

Fraenkiman commented 3 months ago

Hello everyone,

whitecat from the support forum would like to be able to select files and images from subdirectories.

missing_images_in_subdirectories

This would require extending the plugin_bbcode_init_toolbar() function. https://github.com/flatpressblog/flatpress/blob/2d1c4173bc3c65c2318b1c9758bed9337321322a/fp-plugins/bbcode/plugin.bbcode.php#L799

Best regards Frank

azett commented 3 months ago

As written on the FlatPress Support Forum: I doubt it would be good to add the images from the gallery subdirectories there as well - over time, the selectbox may have to display gazillions of individual options.