1
andyz50
Question about template in modules
  • 2005/7/5 19:19

  • andyz50

  • Just popping in

  • Posts: 3

  • Since: 2005/7/1 6


Hi,

I have a question for the fellow XOOPS module developers:

I've modified/developed a few modules in last two years, but I still have trouble managing the tempaltes aassociated the modules. What I uaually do (when I'm in good mood) is to write the templtes in html, uplaod to the web server, install or update module and try to run the page. What frustrates me is that whenI just need some minor changes in the layout or some Smarty variables, or even to correct a small typo, I'll have to do the whol thing again.

If I just modify the html file on the server, without updating the module, it would work. Apparently, when rendering the pages, XOOPS reads from the databse instead of html files. Sometime I get lazy, and edit the template in the databaase directly (via Admin's tempalte management page), I can get instant response on the pages being displayed, but there is a risk: I would someday accidently overwrite the template in db with the ones in html files, unless I download it immediately (XOOPS amdin provides this functionality)

2
Mithrandir
Re: Question about template in modules

If you use the default theme and enable the system general setting "Update module templates from themes/yourtheme folder" XOOPS will check the physical files in the module directory for changes (and update the database automatically - so it is rather heavy on the server, but that should not be important when it comes to developing)

It's one of the more obscurely hidden features in XOOPS that we are working on bringing into the light in the future.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
andyz50
Re: Question about template in modules
  • 2005/7/5 23:17

  • andyz50

  • Just popping in

  • Posts: 3

  • Since: 2005/7/1 6


Mithrandir,

Many thanks for the hint. So if I understand it correctly, this switch does not only apply to the templates under themes/yourtheme/ folder, it also applies to templates under individual modules folder.

Actually I thought about that once, but I quickly mismissed the idea. I guess I should try everything, as long as it doesn't kill me:)

Again, thanks a lot.

Login

Who's Online

194 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

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

Latest GitHub Commits