The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Trying to Create New Module - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16) +--- Thread: Trying to Create New Module (/showthread.php?tid=10943) |
Trying to Create New Module - grahame - Dec 30th, 2015 Hi I have downloaded the Hello World in an effort to teach myself how to create a new module. I have failed at the first hurdle simply trying to add an external link to a css file! I placed the link in the Hello World index.php but the page now fails to load. <link rel="stylesheet" href="dist/style.min.css" /> (I have added a dist sub folder to the hello_world folder) I have ploughed thru' a ton of code but I just cannot figure out where I should put my external links. Can you advise please? Thanks RE: Trying to Create New Module - grahame - Dec 31st, 2015 (Dec 30th, 2015, 2:16 PM)grahame Wrote: Hi Hi Ok I have figured this out. For anyone else out there this is how I got it working. I placed the external links to javascript and css in the actual index.tpl file rather then the index.php file. You also have to wrap these links (and indeed javascript itself for that matter) in {literal}{/literal} tags so:- {literal} <link rel="stylesheet" href="dist/style.min.css" /> {/literal} I gather that the Smarty engine ignores anything encased in {literals}. Hope that helps someone. |