1
jultey
Update a template
  • 2004/6/16 8:41

  • jultey

  • Just popping in

  • Posts: 12

  • Since: 2004/6/2 7


Hi,

(Allways sorry for my English, i'm still french. I have post my problem on a French forum too)

I am making my first module.
But I have a problem with templates :

When I change something in my module's template, this modifications are not display on my XOOPS web site. Like if XOOPS don't use this template... But if I rename this template, XOOPS doens't like (whuite page), then I think that XOOPS finaly use this template...
It seems to me (I have read it I don't remember where) that templates are compiled in the database, then I think a solution to me is to update this database, but how to make it ?

The only way I found is to reinstall all my XOOPS web site (with the database).

But it's not Top !

Can somebody help me ?

Thanks.

Ju

2
Mithrandir
Re: Update a template

When you change the templates, update the module in modules admin to reinsert the templates into the database.

3
jultey
Re: Update a template
  • 2004/6/16 8:58

  • jultey

  • Just popping in

  • Posts: 12

  • Since: 2004/6/2 7


OK, I make that and now it is good : modifications appears (I don't know why because yesterday I exactly did it and nothing was good).
The modifications are now display

But the other face of my problem is that I have based my personnal module on the "Xoops Contact Us Module".

I want to change the name of my template : contact_contactusform.html -> to -> crce_addressource.html

Then I make this modification in the index.php page :

//$xoopsOption['template_main'] = 'contact_contactusform.html';
$xoopsOption['template_main'] = 'crce_addressource.html';

But when update the module, this modification of the name don't appear : It display on my screen the old name of the file :

Module data updated.
Updating templates...
Template contact_contactusform.html inserted to the database.
Template contact_contactusform.html recompiled.

How to change this file's name ?


Thank you Mithrandir for your answer.

Juju

4
jultey
Re: Update a template
  • 2004/6/16 9:44

  • jultey

  • Just popping in

  • Posts: 12

  • Since: 2004/6/2 7


Someone resolve (I think -> I haven't test it yet -> this morning after lunch).

He answers me that I have to change the xoops_version of my module too.

Effectively, I have in this file :

// Templates
$modversion['templates'][1]['file'] = 'contact_contactusform.html';
$modversion['templates'][1]['description'] = 'Contact Us Form CRCE';

I will replace this file with the new file's name of my module.

Thank for your help.

Ju

Login

Who's Online

238 user(s) are online (69 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

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

Latest GitHub Commits