rejetto forum
May 26, 2012, 12:53:38 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: 1 2 [All]
  Print  
Author Topic: linking problem  (Read 1141 times)
0 Members and 2 Guests are viewing this topic.
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« on: June 16, 2011, 10:24:22 AM »

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
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: June 20, 2011, 09:18:12 AM »

what's this link you click? what file is it?

Logged
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« Reply #2 on: June 20, 2011, 07:46:43 PM »

The link I use is <a href="URL*****/hfs/Crimson.vfs">Home</a>
I get download window.
can you help?
Thanks
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #3 on: June 22, 2011, 02:12:16 AM »

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.
Logged
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« Reply #4 on: June 22, 2011, 02:48:22 PM »

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?
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #5 on: June 22, 2011, 04:14:06 PM »

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.
Logged
rejetto forum
« Reply #5 on: June 22, 2011, 04:14:06 PM »

Do you like this software? Consider even $2
 Logged
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« Reply #6 on: June 22, 2011, 08:12:01 PM »

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?
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #7 on: June 23, 2011, 09:59:11 AM »

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.

Follow members gave a thank to your post:

riccetts

For this post, 1 member gave a thank you!
Logged
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« Reply #8 on: June 23, 2011, 11:21:00 AM »

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.
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #9 on: June 23, 2011, 12:20:07 PM »

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.
Logged
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« Reply #10 on: June 23, 2011, 07:54:19 PM »

oh ok let me try it
thanks
Logged
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« Reply #11 on: July 05, 2011, 10:49:08 AM »

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?
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #12 on: July 05, 2011, 11:04:47 AM »

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.
Logged
riccetts
Experienced poster
***
Offline Offline

United States United States

Posts: 32



View Profile
« Reply #13 on: July 05, 2011, 01:48:59 PM »

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, 10:36:14 AM by riccetts » Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« Reply #14 on: July 06, 2011, 12:33:53 PM »

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.

Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #15 on: July 13, 2011, 07:51:48 AM »

in cases like this, i guess the best way to go is the {.load tpl.} command
but i fear it's limited to "event scripts". Would this be true, you would have to put it inside the [request] event

Follow members gave a thank to your post:

riccetts

For this post, 1 member gave a thank you!
Logged
Pages: 1 2 [All]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 19, 2012, 11:27:32 PM
anything