CTLModuleMaker -> finaltemplate parameter

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
dub3000
New Member
New Member
Posts: 4
Joined: Thu Oct 26, 2006 2:33 am

CTLModuleMaker -> finaltemplate parameter

Post 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
User avatar
plger
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 15, 2008 10:38 am

Re: CTLModuleMaker -> finaltemplate parameter

Post 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?
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: CTLModuleMaker -> finaltemplate parameter

Post 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...
dub3000
New Member
New Member
Posts: 4
Joined: Thu Oct 26, 2006 2:33 am

Re: CTLModuleMaker -> finaltemplate parameter

Post 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.
User avatar
plger
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 15, 2008 10:38 am

Re: CTLModuleMaker -> finaltemplate parameter

Post 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)
dub3000
New Member
New Member
Posts: 4
Joined: Thu Oct 26, 2006 2:33 am

Re: CTLModuleMaker -> finaltemplate parameter

Post 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
Post Reply

Return to “Modules/Add-Ons”