X3 Photo Gallery Support Forums

Posts: 5
Joined: 08 May 2020, 21:33

Re: Files App :new:

20 May 2020, 10:23

What is the best way to add a header (html code) to the FilesApp page ?
Trying to add something simple like this:
<Table><tr><td><h3>Page Title</h3></td><td>Follow me on Instagram <a href="someURL">SomeInstagramAccount</a></td></tr></table>
I would like it to be across the entire page not just on top of one of the sections... 

Although it works below the line: 
  <nav id="topbar"
it is not across the whole top (only the right hand side)   --   When I put it above the line - it is across the whole top, but as I scroll it disappears...

User avatar
X3 Wizard
Topic Author
Posts: 12191
Joined: 30 Sep 2006, 03:37

Re: Files App :new:

20 May 2020, 21:26

Unfortunately, Files app is not meant to work like this. You can't just modify HTML in the PHP and expect it to work. It might causes errors, because the javascript expects a specific order of items. Besides, the topbar has some properties that make it "fixed" (eg. shows on scroll up). Where exactly are you trying to add  the custom html? ... below the topbar, above the gallery? 

I had some ideas about this for a future update. Maybe some HTML file that can be "included" dynamically, global and/or on a per-folder basis. For example, you might want to include a title and short description for all/some folders, in which case Files app could look for a file page.html or page.json in each folder. Ideas.

On a side note, it sounds like you are using Files app like a website so to speak? Nothing wrong with that, although Files app will always focus on being a functional utility tool. I do have plans to create a new "gallery" app, which will be very similar to Files app (a branch), except it will have more customization (styles, custom text etc).