Page 1 of 1

Using different summary templates in questions module [SOLVED]

Posted: Thu Oct 30, 2008 9:08 pm
by davids355
I am using the Questions module, version 1.0.1.

Every time I try to use a different summary template:

{cms_module module=Questions summarytemplate="test"}

I get this error on the page:
string(69) "Smarty error: unable to read resource: "module_db_tpl:Questions;test""

(I have of course created a summary template called test).

I would really like to get around this as Id like to have different displays on my home page and on my main FAQ page.

You can see the working questions module here:
http://www.shareworld.co.uk
and here
http://www.shareworld.co.uk/index.php?page=questions

Just for the record, I dont know alot about php programming or about mysql, but I know my way round a computer and I am quite keen to start getting involved in cmsms on the development side so although a solution would be great, if anyone can point me in the right dirrection to troubleshooting the problem, Id be happy to have a mess around my self.

Re: Using different summary templates in questions module

Posted: Sat Nov 01, 2008 7:21 pm
by davids355
Could someone even give me some pointers on where to start with this? Im sort of guessing that the reference "module_db_tpl" is a table in the database? If it is, then its not present, could I create it? or is it more complicated than that?

Any help at all will be much appreciated.

thanks...

Re: Using different summary templates in questions module

Posted: Sat Nov 01, 2008 8:31 pm
by Coldman
Hi again ;) !

Had to install Questions to see how it works..

I tried with your suggestion above and I got same error.
So I did take an look in my db in table cms_modules_templates and there I found:
template_name: summarytest

And then I did a test with {cms_module module=Questions summarytemplate=summarytest} and it worked!

...maybe there's a bug in this module

/Coldman

Re: Using different summary templates in questions module

Posted: Sat Nov 01, 2008 11:20 pm
by davids355
Thanks alot Coldman your a genius! You dont know how long Ive been pestering this forum to get a solution for that! If you need anything just let me knoe; I owe you a favour.

I really need to learn a little more with regards to this system, how does module_db_tpl equate to table cms_modules_templates?