1
redheadedrod
Module cloaning.. And problems with templates?

Ok, so I have a module I am modifying.. I cloned it because the functions will work for another program I am doing...

I am trying to get the template to work but It is not working...


Both modules have the same name on the template.

When I try to use the second version of the module it uses the first template.

Looks like the code that loads the template follows...

$xoopsOption['template_main'] = 'index_template.html';


This is with xoops 2.5.

I am guessing at this point that this sticks only one template into the data base and wont let the second one get accessed.

How do I fix this? Should templates all have different names to make sure they dont conflict like this?

Thanks!

Rodney

2
ghia
Re: Module cloaning.. And problems with templates?
  • 2011/1/7 11:03

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


In the table is also the module name present. So, it could be distinguished.

3
redheadedrod
Re: Module cloaning.. And problems with templates?

I ended up changing the names of the templates and its working now. For some reason when I was programming them last night they weren't changing and was freaking me out a little bit..

Funny what sleep can do..

So apparently if you have two templates with the same name but even from different modules it will use the first one it comes to...


You would think they would be aligned to the module name but did not seem to be.

So I prefixed the module name to the name of the template.

Login

Who's Online

407 user(s) are online (303 user(s) are browsing Support Forums)


Members: 0


Guests: 407


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