3.7. Folder Views

Back for ByteHoard 2.1 are multiple folder views. Currentely in the works are icon, tiles, thumbnails and list views.

What happens is that when the folder viewer is called upon, it looks in the database to see if a user has a set view mode for that directory. If they don't, it looks for a global setting, If that doesn't exist, it looks at the contents and uses either tiles or thumbnails based on the directory contents (more thumbnailable files or less).

The directory viewer then passes it off to the layout, which then uses the right view. If the layout doesn't have that view it can do whatever it likes; the suggestion is to default to tiles mode, but it depends on the template's design principles. If the layout is tailored towards things like PDAs or mobile phones, then it may want to use list mode or a special mode all the time, and ignore most view mode hints. However, for some special modes, such as the suggested HTML view mode for directories with index.html files in them, these special templates may have to abide by those. This aspect isn't yet finalised.