xoops forums

tatane

Just can't stay away
Posted on: 2013/10/9 8:12
tatane
tatane (Show more)
Just can't stay away
Posts: 649
Since: 2008/5/6 1
#1

Integrate a html file in the template of a module

Hello
I create an html file that I would integrate into the template of a module. To do this, so I put my file in modules/name_module_templates.

Then I put in the template code of the module : <{includeq file="http://lmy_website.com/my_module/templates/my_folder.html"}>

Why is not work ?

Thank

bumciach

Not too shy to talk
Posted on: 2013/10/11 12:28
bumciach
bumciach (Show more)
Not too shy to talk
Posts: 153
Since: 2007/6/25
#2

Re: Integrate a html file in the template of a module

Did you try use path (not url) for file= attribute?

Mamba

Moderator
Posted on: 2013/10/27 0:21
Mamba
Mamba (Show more)
Moderator
Posts: 10792
Since: 2004/4/23
#3

Re: Integrate a html file in the template of a module

1) Why do you have "includeq"? Is it a typo here, or in your code?

2) As Bumciach said, you need to use the syntax for template resources to {include} files outside of the $template_dir directory. See here:

http://www.smarty.net/docsv2/en/template.resources.tpl
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs