Categories > TinyButStrong general >

The 'file' option suggestion

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Daniel Tsviatkov
Date: 2011-03-10
Time: 09:05

The 'file' option suggestion

In a project i had to separate the templates in different folders, and needed to use a same header.html file, but it was one level up.
The trick worked with file=..header.html (without quotes), but then another file declaration didn't worked (file=menu.html) in the header file.
So basically the suggestion is to implement some kind of relative paths for the included sub-templates.
By: Skrol29
Date: 2011-03-11
Time: 00:38

Re: The 'file' option suggestion

Hi agree, I'll try to implement that for the next release.
By: Skrol29
Date: 2011-03-18
Time: 23:04

Re: The 'file' option suggestion

Not that simple after trying to implement it.
Nevertheless it's a legitimate need. Not for the very next version (3.7.0), but I'll try for the next one.
By: Daniel Tsviatkov
Date: 2011-03-19
Time: 08:15

Re: The 'file' option suggestion

It's ok :)
I got a temporary fix for one level up in f_Misc_GetFile, but didn't had the time to look for a real solution.