Page 1 of 1
CTLModuleMaker -> finaltemplate parameter
Posted: Tue Jul 07, 2009 8:04 pm
by dub3000
Hello and first of all thanks a lot for developing the CTLModuleMaker.
When I try to change the default template inside the tag like this {cms_module module="name_of module" what="name_of_category" finaltemplate="name_of_detailtemplate"} it just does not work. I always get the default detail template. I tried aswell to do the same thing with the listtemplate but no luck. Surley someone has employed this option, or no.
Please can someone point me in the right direction.
I use cmsms MLE v.1.5.4 and made the module with CTLMM 1.8.7.1.
Thanks very much
Re: CTLModuleMaker -> finaltemplate parameter
Posted: Wed Jul 08, 2009 4:23 am
by plger
I just tested it once again to make sure, and here there's no problem with these parameters, and no other user has reported such problems.
What kind of url rewriting are you using?
Re: CTLModuleMaker -> finaltemplate parameter
Posted: Wed Jul 08, 2009 7:59 am
by klenkes
Hi.
Maybe I got you completely wrong, but using:
what="name_of_category" finaltemplate="name_of_detailtemplate"
doesn't make any sense to the module. By calling a "category" with a detailtemplate, which usually has no loop in it, doesn't do anything. Perhaps the module then defaults to the defaulttemplate...
Re: CTLModuleMaker -> finaltemplate parameter
Posted: Thu Jul 09, 2009 2:46 pm
by dub3000
Hi and thanks for the replies. Klenkes maybe right.
Maybe I should try to explain it better.
I have a page where I call a category, lets say "Region" from there I will retrieve the list of all children of "Region". and of course I will click on on one child to get to the last level. As I thought the parameter of finaltemplate will be passed on to the last level. If this is not the case would you know how to do it?
I have set up my module to have profiles of companies ordered by region. This profiles contain fields in different languages which I than can filter via the templates on the pages. I hope that makes my problem a bit clearer.
Thanks for the help and again thanks for a great job on ctlmm.
Re: CTLModuleMaker -> finaltemplate parameter
Posted: Thu Jul 09, 2009 11:27 pm
by plger
I am afraid the template parameters are passed on only when you are using no url rewriting at all. Otherwise, we'd need to have the template specified in the url, and most people wouldn't like that.
If I understand well, your problem is that you would need to use more than one final template... I believe you should either use only one template (with "if"s to handle the specifications), or select to have a different final template for each category (in the next to last step of module creation, you should be able to choose this... templates would be edited when you edit a category)
Re: CTLModuleMaker -> finaltemplate parameter
Posted: Sun Jul 12, 2009 9:02 pm
by dub3000
Thanks for your time and advice plger. I will see if I can get it to work following your instructions. I will let you know what I figured out. As it looks like your "if" solution could be the answer.
Merci