Configuring Web Pages
(1.2) By PChemGuy on 2024-06-08 04:47:18 edited from 1.1 [link] [source]
The https://fossil-scm.org/home/help page provides an extensive list of "Available web UI pages", but I cannot find information on how to customize/configure those. I mean, the fossil web server (started via "fossil ui") on a new repository serves both "/ticket" and "/reportlist". Both "https://fossil-scm.org/reportlist" and "https://fossil-scm.org/ticket" return 404 even though the previously used ticket facility is still accessible via https://fossil-scm.org/home/ticket, https://fossil-scm.org/home/reportlist, and https://fossil-scm.org/home/rptview?rn=1.
So, if I run fossil web interface via "fossil ui", how do I customize/enable/disable the various "built-in" web pages listed on "https://fossil-scm.org/home/help"?
Suppose I want to generate a webpage similar to "https://fossil-scm.org/home/rptview?rn=1" showing a result of a custom SELECT on a custom URL path the easiest way. I do not want to generate the whole new page myself, rather, I would prefer to simply feed the data to the same template that generates the list of tickets, if possible. My understanding is that I could use TH1 to run the SQL query. But where do I put the script? How do I set it all up?
Can I use TH1 to run multiple queries? My ultimate goal is to ATTACH a non-repo database in a read-only mode (perhaps via TH1 - query - ATTACH), run the SELECT query, and produce a webpage similar to the ticket list page with results. (I do not want to place target data in the repository database, even though I understand that it can be done.)
(2) By Stephan Beal (stephan) on 2024-06-08 10:31:54 in reply to 1.2 [source]
. Both "https://fossil-scm.org/reportlist" and "https://fossil-scm.org/ticket" return 404
Because that particular fossil instance is rooted under /home, not /. It's a CGI, not a standalone server, so it cannot serve its own pages from the root.
So, if I run fossil web interface via "fossil ui", how do I customize/enable/disable the various "built-in" web pages listed on "https://fossil-scm.org/home/help"?
Generally speaking, there are no facilities for disabling individual pages beyond user permissions and the "public pages" glob in /setup_access. A tiny minority of pages - one or two - have page-specific controls in place, e.g. /fileedit is only available if explicitly enabled by the admin.
Suppose I want to generate a webpage similar to "https://fossil-scm.org/home/rptview?rn=1" showing a result of a custom SELECT on a custom URL path the easiest way.
There is no facility for custom URL paths beyond /walias. If you want to customize the ticket reports, first visit /reportlist and note the various "new" and "edit" links there.
Can I use TH1 to run multiple queries? My ultimate goal is to ATTACH a non-repo database in a read-only mode...
We'll need to wait on someone else for an answer to that.