1
pwalter
modifying a module template file
  • 2004/2/28 4:44

  • pwalter

  • Just popping in

  • Posts: 10

  • Since: 2004/1/26


I would like to make a minor change to the xoopsgallery_index.html file located in modules/xoopsgallery/templates directory. Modifying the file directly does not work - smarty (re)generates the old file (as inspected in the templates_c directory). Under Administration/System Admin/Preferences/General Settings, I checked "Yes" for the "Update module template ..." setting and placed the modified file under themes/mytheme/templates as instructed, but I still cannot get the changes recognized. What am I doing wrong?

2
lucastds
Re: modifying a module template file
  • 2004/2/28 5:00

  • lucastds

  • Just popping in

  • Posts: 32

  • Since: 2004/2/20


I think you have to modify the template directly from the admin panel. Go to the template management section on admin panel and make a copy of the default template set. Edit the file you want to change (on your copy template set). At the main preferences setup, change the site template set to the one you have just created. It should work.

3
Mithrandir
Re: modifying a module template file

The setting "update module templat.." will update THEME files automatically if changed.
To have the templates in e.g. modules updated after a modification, you should update the module in system admin -> modules admin

4
philou
Re: modifying a module template file
  • 2004/2/28 9:52

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


yes... and if you don't want lose your modif, you have to change the file in the /module/yourmodule/template else you lost your change when updating the module via the admin panel.

Login

Who's Online

185 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

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

Latest GitHub Commits