BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
14.67k stars 1.85k forks source link

Displaing a list of books with a specific tag #4744

Closed Axamulyan closed 7 months ago

Axamulyan commented 7 months ago

Attempted Debugging

Searched GitHub Issues

Describe the Scenario

Hi! I need to break books into several groups and display these groups on a homepage instead of My Recently Viewed and Recently Updated Pages, etc. I've searched for a solution and decided to do it with tags. What I can't figure out, is how to make a query for a list of books with a specific tag. I'm not exactly good at PHP, so I've looked through the project for an answer. The only example of using tags in a close way to what I need is in SearchOptions, but I wasn't able to adapt the code to my needs. Could you please give me some hint of how to properly make a query? Or maybe there's a simpler solution that I haven't noticed

Exact BookStack Version

BookStack v23.10.2

Log Content

No response

Hosting Environment

PHP 8.1 on Ubuntu 22.04.3 Server, installed using official installiation script

Axamulyan commented 7 months ago

I've figured it out. (: