rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: colbycurtis on April 29, 2008, 08:17:09 AM

Title: Folder Archive
Post by: colbycurtis on April 29, 2008, 08:17:09 AM
I am new to HFS but I really love the option to let the user click on "Folder Archive" so they can download an entire folder in .tar format. So here is my questions. One is there a way to change it to zip instead of tar? And second and more important I have been importing allot of the templates you guys have made and while I like allot of them I did not see the "Folder Archive option in any of them. Is there a way to add it to a new template or is there some templates out there that have this feature like the HFS default template?
Title: Re: Folder Archive
Post by: bacter on April 29, 2008, 09:13:10 AM
I suppose that many templates support download as archive.
But to make available and visible this option, you must right-click on the folders in your filesystem of your hfs and mark the option 'Archivable'!
Title: Re: Folder Archive
Post by: Foggy on April 29, 2008, 09:50:04 AM
I saw in your post in the other thread but here is more appropriate.

Folder Archives are still a new feature only being introduced last year. The "Thunder Chicken of Glory", "Rawr Template" and "Terayon" I am sure all support folder archives but the other templates are too old.
Title: Re: Folder Archive
Post by: colbycurtis on April 29, 2008, 07:45:44 PM
So shouldn't I be able to just copy the code from the default template for "Folder Archive" and paste it into whatever other template I want to import? If so What lines exactly do I have to copy and paste? And where do I paste it into another template?
P.S. Is there away to open a template or the default code in Front Page? I know thats probably sacralige to say but hey I suck at html
Title: Re: Folder Archive
Post by: Foggy on April 29, 2008, 10:57:02 PM
nope :(
you can only use a text editor.

basically you only need to include a link to ~folder.tar?recursive.

eg
Code: [Select]
<a href="%folder%~folder.tar?recursive">Download Folder Archive</a>
Title: Re: Folder Archive
Post by: colbycurtis on April 29, 2008, 11:42:59 PM
can it say folder.zip instead of tar?
Title: Re: Folder Archive
Post by: Tuskenraider on April 30, 2008, 01:10:57 AM
can it say folder.zip instead of tar?

nope...  zip is compressed  .tar is not..  hfs can not currently compress files.

tusken