rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: rejetto on March 24, 2006, 03:03:40 PM
-
looking at this template i had an idea
http://www.rejetto.com/forum/viewtopic.php?t=3032
to be able to associate to a folder (and all the subtree) a different template.
this would help showing files in a more specific way based on their type, but not only this.
of course the different template would most time be almost identical to the main template, just few differences, so the user should only input the [sections] that change.... like [file].
so the differrence template would only be 2-3 lines long, it would be easy to build.
what do you think about it? suggestions?
-
That would be a very useful feature. You should start a poll rejetto. ;)
MarkV
-
It wouldn't hurt to test some examples to fully understand what rejetto means. From that testing, I'm sure rejetto would get informative suggestions and feedback.
-
what do you think about it? suggestions?
I think this would be quite handy, so users can build their own galleries or even some kind of simple message board using text files.
Maybe there could also be a new image type, something like \~img_file, for example ~img_thumb which would give a thumbnail or the normal image if not an image file type.
But generating thumbnails can be long, so this would again be an example for a multi-threaded response-generation.
I made a gallery-supporting template using some javascript:
var prm=wl.substr(wl.lastIndexOf('?')) .toLowerCase();
var showPics = prm.search(/pics/)>-1;
showThumbs = prm.search(/thumbs/)>-1;
and below the listing I added
<a class=little href='%encoded-folder%'>Normal</a> -
<a class=little href='%encoded-folder%?pics'>Preview</a> -
<a class=little href='%encoded-folder%?pics&thumbs'>Thumbnails</a>
And depending on the values of the variables I built different HTML using document.write(), but having such features already in HFS would really be great, as this client-side thing is quiete slow!
-
Martok,
Displaying thumbnails isn't that big of an issue. I've got many pages and hundreds of thumbnails that open to full size images when clicked on in my HFS wallpaper section. The layout etc. was all done in html and runs quick.
-
The layout etc. was all done in html and runs quick.
Yes, this is sure. In my "real" pages, I also have IrfanView-Generated Galleries. Adding this to a template should only enable my users to choose what they want and making on-the-fly-gallery features for upload folders without a selection HTML.
-
I also have IrfanView-Generated Galleries
I created my html galleries myself. I didn't use any external application to create what you see if that is what you were thinking.
-
I created my html galleries myself. I didn't use any external application to create what you see if that is what you were thinking.
This seems to be a lot of work, creating thumbs for all images, making 20 pages of html and filling the table with the stuff...
I would have been a little too lazy for this, so I used irfanview.
-
This seems to be a lot of work, creating thumbs for all images, making 20 pages of html and filling the table with the stuff...
I would have been a little too lazy for this, so I used irfanview.
It was time consuming at first, that's for sure but I like a challenge. I spent quite a bit of time just to come up with a layout that I would be happy with. I not only had to create the html for the main pages but also for each thumbnail so that when they are clicked you get the full image. As there was a lot of repetitive html code there was a lot of copy and pasting which made it go faster. All the html wasn't written at the same time. I keep adding to it as I get new images. Quick and easy to do. The nice thing about it is that I got the layout that I wanted and it follows the scheme of the rest of my site. HFS is so customizeable. That is what I like about it. I haven't heard of irfanview before. I'll have to check it out. Maybe I can use it for something else.
-
Good Idee
Just do that.
-
Are you planning to make only [] - sections overridable or will the nameless main section also be changeable? If it will be, this would be very great!
-
Are you planning to make only [] - sections overridable or will the nameless main section also be changeable? If it will be, this would be very great!
i don't understand what you are asking for!
-
i don't understand what you are asking for!
All sections are started with INI-Style []-symbols.
But at the very beginning of the file, there is a text which has no section heading and starts directly with <html> (the main section, how I called it).
Will this one also be changeable?
If yes, it would allow users to build a statistics-'page' which will be a folder with a customized main section without %files%-element, but only statistic fields, as graphs, total in/out and so on.
-
Will this one also be changeable?
it has always been editable
If yes, it would allow users to build a statistics-'page' which will be a folder with a customized main section without %files%-element, but only statistic fields, as graphs, total in/out and so on.
that's not the point
see [error-page], it doesn't depend on the root section [], it is a full page
-
Rejetto:
I would like to have more flexibility with the template. More sections? Or sections depending on conditions like filetypes? What do you mean exactly? AFAIK see some section in the template depend on certain conditions to be run. Is it that what you propose? I already had and still have some ideas about that.
-
i don't understand
make a precise proposal
-
i think gees ment
that he wants special conditions for
special files
like the template to apply only
if there is certain .filetype in the folder
:)
that would be nice :)
-
something like this ?? :)
(http://contakt.hit.bg/jpg.JPG)
-
sections for filetypes... sounds interesting
other requests?
-
This will be very nice. I see this on one apache server before 1 year ago.