N1CK3RS0N Posted July 12, 2011 Share Posted July 12, 2011 Hello, I'm working on some custom pages and I wanted to set the directory for these pages to "pages/" in the home directory. However the default directory for templates is of course "templates/" and then whatever theme you have selected. Is there any way I can work around this? I tried using the following but had no luck. $templatefile = "../../pages/test.tpl"; Thanks, 0 Quote Link to comment Share on other sites More sharing options...
ModulesGarden Posted July 12, 2011 Share Posted July 12, 2011 Hello, I'm working on some custom pages and I wanted to set the directory for these pages to "pages/" in the home directory. However the default directory for templates is of course "templates/" and then whatever theme you have selected. Is there any way I can work around this? I tried using the following but had no luck. $templatefile = "../../pages/test.tpl"; Thanks, Regarding the documentation, you should try something like this: $templatefile = 'file:/path_to_your_directory/pages/test.tpl'; This may work as a workaround, if the variable is loaded directly to the smarty as the template path. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.