rejetto forum

.tpl is downloading in browser regardless of settings

0 Members and 1 Guest are viewing this topic.

Offline Ninewit

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
I want to have .tpl files as my index files while in a folder.

These are my settings that I have for masking .tpl files http://puu.sh/bsWLL/6be9625b0e.png

Yet, when I open the site, it still downloads that index.tpl


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
what is that .tpl file exactly?
if it is a whole html page, then you should rename it to "index.html"
if it's a template, you should name it hfs.diff.tpl


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
the reason why it is downloaded is that the browser doesn't know what to do with that file.
If it is an html and for some strange reason you want to keep the name .tpl then you have to configure the mime type for tpl files, and give it "text/html" as value


Offline Ninewit

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
what is that .tpl file exactly?
if it is a whole html page, then you should rename it to "index.html"
if it's a template, you should name it hfs.diff.tpl
the reason why it is downloaded is that the browser doesn't know what to do with that file.
If it is an html and for some strange reason you want to keep the name .tpl then you have to configure the mime type for tpl files, and give it "text/html" as value

What I was trying to do was have every folder have it's own .tpl code in it. So what I did was have "hfs.diff.tpl" in each folder and that worked perfectly. Thank you so much
« Last Edit: September 10, 2014, 12:55:12 PM by Ninewit »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
hfs.diff.tpl need to have inside only changed sections, not the whole template. The rest is inherited from the main template.