| Re: problems with included templates |
| by fangio on 2006/1/6 2:19:08 I've found the problem. Both errors were caused by missing endings (.html) in the include template statements. |
| problems with included templates |
| by fangio on 2006/1/6 1:15:13 Hello, I'm currently working on my first module for xoops. But I've some problems with templates. There are 5 of them in my template folder The installation of my module works without problems. The templates will be compiled and written in db. My template odkroster_membersList.html includes the other 4 templates, therefore I've chosen the order as you can see below. First I didn't know that the order is important so I had done it wrong. But now it seems correct to me. The problems: 1) the error [I]...Smarty error: unable to read resource: "db:odkroster_membersList_normal"...[/I] is still there. But IMHO the order should be correct now. There are no other includes made in my templates. 2) during the deinstallation of my modul another template file will be deleted. Installing and deinstalling it again another (not my) template will be kicked. I'm totally confused. deinstallations-log (part): Deleting templates... Template odkroster_membersList_class.html deleted from the database. Template ID: 419 Template odkroster_membersList.html deleted from the database. Template ID: 422 Template odkroster_membersList_rank.html deleted from the database. Template ID: 421 Template odkroster_membersList_level.html deleted from the database. Template ID: 420 Template odkroster_membersList_normal.html deleted from the database. Template ID: 418 Deleting block... Deleting templates... Template multimenu_block_02.html deleted from the database. Template ID: 128 Template multimenu_block_02.html deleted from the database. Template ID: 346 Deleting module tables... Table xps_odk_guild dropped. [...] xoops_version.php (part): [...] // Templates $modversion['templates'][1]['file'] = 'odkroster_membersList_normal.html'; $modversion['templates'][1]['description'] = ''; $modversion['templates'][2]['file'] = 'odkroster_membersList_class.html'; $modversion['templates'][2]['description'] = ''; $modversion['templates'][3]['file'] = 'odkroster_membersList_level.html'; $modversion['templates'][3]['description'] = ''; $modversion['templates'][4]['file'] = 'odkroster_membersList_rank.html'; $modversion['templates'][4]['description'] = ''; $modversion['templates'][5]['file'] = 'odkroster_membersList.html'; $modversion['templates'][5]['description'] = ''; [...] I hope you can help a newbie like me. Thanks in advance and sorry for grammatical mistakes, I'm not a native speaker. -- fangio |