rejetto forum

linking problem

0 Members and 1 Guest are viewing this topic.

Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
I would like to know how to link from page to page.(from to different templates)
I have both templates in a folder and hfs reconizes them. but when I click on the link
I get a download window instead.
can you help?
Thanks Riccetts


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
what's this link you click? what file is it?



Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
The link I use is <a href="URL*****/hfs/Crimson.vfs">Home</a>
I get download window.
can you help?
Thanks


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
standard behavior of links is: if a folder, then enter, if a file, then download.
Some exceptions to this, like pictures that get shown, are managed by the browser.
I don't see a reason for the vfs file to act differently.
As a side note, the vfs is not a template. Those go by "tpl" extension. VFS is a virtual file system, that is a bunch of file (organized).

If you explain what you meant to do, i can suggest a way.


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
I made a sidebar menu and added a link to another template but it appears like its a download.
Is it possible to migrate to another template that I made with a link or do I have to add the template to the default tpl?


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
The browser itself doesn't know what the template is, so rather than linking to it, you need to link to another folder that uses that template.  Try copying the second template to hfs.diff.tpl inside the new folder.


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
I tried it but it got me to an error 404 not found
do I have to put the complete address in diff and link?


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
Put a new folder in your VFS, then click on properties, then go to the diff template tab.  Put your template there.

To get to it in the browser, just go to that folder with the alternate template.


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
I made a virtual folder called temp and the template is in the folder can you tell me how to set the link up. <a href="temp/hfs.diff.tpl">Browse</a> ?
At least thats what I have.


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
No, you don't link to the template.  You link directly to the folder called /temp/ ex.  <a href="/temp/" >test</a>   and HFS will automatically deliver the new content based on the template inside that folder.  It's completely transparent to the browser; it doesn't know or care that it's a different template.


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile

Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
I can't seem to get this to work.
I made another folder with the template in it and also included all images.
In diff I typed the template that I would like to go.
The link for this temp looks like this: <a href="/temp/">page 1</a>
I did the same for the other folder  the link for this:<a href="/temp2/">page 2</a>
It doesn't work I get in a different window the name of the template.
can you help?


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
Make sure that /temp/ is a real folder, then in Windows Explorer, put a file named hfs.diff.tpl inside that folder, containing your template.  Alternatively, you can type in the file path in HFS itself in the diff template section, something like C:\temp\hfs.diff.tpl

Don't do both.


Offline riccetts

  • Occasional poster
  • *
    • Posts: 45
  • A working progress
    • View Profile
Don't do both?
In diff can i just type my template in?
now when I do this I get a new window and my templates name.
thats it.
« Last Edit: July 06, 2011, 03:36:14 PM by riccetts »


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
There are 3 different ways to make a diff template.

1)  Put a file called 'hfs.diff.tpl' in a folder.

2)  Type in the filepath of a template in the 'diff template' section of HFS.

3)  Type in your entire template into the 'diff template' section of HFS.