1
tatane
Integrate a html file in the template of a module
  • 2013/10/9 8:12

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


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

2
bumciach
Re: Integrate a html file in the template of a module
  • 2013/10/11 12:28

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


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

3
Mamba
Re: Integrate a html file in the template of a module
  • 2013/10/27 0:21

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

Login

Who's Online

122 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 122


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits