Topic-icon Template overrides for mod_sclogin -

Active Subscriptions:

None
9 years 5 months ago #52623 by gracon
Hi,

Where do I put the files when I want to override the entire mod_sclogin. I've done this, but it has no effect :

[xxx@darwin:tmpl]$ cd /var/www/xxx.xxx.co.za/templates/yoo_helios/html/mod_sclogin/
[xxx@darwin:mod_sclogin]$ ll
total 80
drwxrwx--- 2 www-data www-data 4096 Apr 15 12:49 ajax
drwxrwx--- 3 www-data www-data 4096 Apr 15 12:49 fields
-rwxrwx--- 1 www-data www-data 24983 Apr 15 12:49 helper.php
-rwxrwx--- 1 www-data www-data 1541 Apr 15 12:49 install.php
-rwxrwx--- 1 www-data www-data 1989 Apr 15 12:49 mod_sclogin.php
-rwxrwx--- 1 www-data www-data 21165 Apr 15 12:49 mod_sclogin.xml
-rwxrwx--- 1 www-data www-data 2559 Apr 15 12:49 sc_helper.php
drwxrwx--- 4 www-data www-data 4096 Apr 15 11:35 themes
drwxrwx--- 2 www-data www-data 4096 Apr 15 12:52 tmpl
[xxx@xxx]$ pwd
/var/www/xxx.xxx.co.za/templates/yoo_helios/html/mod_sclogin

Regards
The topic has been locked.
Support Specialist
9 years 5 months ago #52627 by mel
Template overrides don't work that way. They are intended to override the view files only, not the entire module. The only files that you would be able to do the template override for would be in the /modules/mod_sclogin/tmpl directory.

To do what you are looking for, you'll want to create your own custom version of the module. So make a copy of all of those files, edit the mod_sclogin.xml file to have a different 'name' field, zip up the files and then install on your system. Then going forward, use your custom module instead of SCLogin. However, please remember that you'll have to manually add changes in our subsequent SCLogin module releases to your own module if applicable/necessary.

-Melissa
The topic has been locked.