Having Problems getting CTLModuleMaker module to work with 1.6
- chuckienorton
- Forum Members
- Posts: 68
- Joined: Wed Feb 14, 2007 6:58 pm
- Location: Pasadena, California
Having Problems getting CTLModuleMaker module to work with 1.6
Just installed fresh 1.6, and CTLModuleMaker 1.8.7.1. After going through all the stuff and creating a module called "portfolio" I tried to display the default settings in a page using this: {cms_module module="portfolio"}
But it's just a blank page.
here is default template:
{foreach from=$itemlist item="item"}
{$item->detaillink} {$item->name}
{/foreach}
Any clues. Just started using this module and the idea of it is AMAZING... I'm just hoping to get it to work. Thanks in advance!
But it's just a blank page.
here is default template:
{foreach from=$itemlist item="item"}
{$item->detaillink} {$item->name}
{/foreach}
Any clues. Just started using this module and the idea of it is AMAZING... I'm just hoping to get it to work. Thanks in advance!
Re: Having Problems getting CTLModuleMaker module to work with 1.6
Stupid question, but I assume you created items?
Re: Having Problems getting CTLModuleMaker module to work with 1.6
Strange behavior also here with release 1.8.7.1 and mod_rewrite turned on.
As test install demoof prodcatalogue 2.0 (created with 1.8.4 of CTLModuleMaker)
It works correctly, but if you take same dna file (prodcatalogue_auto_export.dna) and create again module with CTLModuleMaker 1.8.7.1, new module doesn't work anymore (The list feature works but details of every item is blank).
Maybe it depends on mod_rewrite, because if I disable mod_rewrite detail page works again.
Regards
blast
As test install demoof prodcatalogue 2.0 (created with 1.8.4 of CTLModuleMaker)
It works correctly, but if you take same dna file (prodcatalogue_auto_export.dna) and create again module with CTLModuleMaker 1.8.7.1, new module doesn't work anymore (The list feature works but details of every item is blank).
Maybe it depends on mod_rewrite, because if I disable mod_rewrite detail page works again.
Regards
blast
Re: Having Problems getting CTLModuleMaker module to work with 1.6
There's indeed a problem, I'll look into it.
Thanks,
Thanks,
Re: Having Problems getting CTLModuleMaker module to work with 1.6
In the module file (xxx.module.php), in function SetParemeters, try adding
to all RegisterRoute calls... for example:
becomes
Code: Select all
array("action"=>"default")
Code: Select all
$this->RegisterRoute("/[pP]rodcatalogue\/([Dd]etail)\/(?P<alias>[^\/]+)\/(?P<returnid>[0-9]+)$/");
Code: Select all
$this->RegisterRoute("/[pP]rodcatalogue\/([Dd]etail)\/(?P<alias>[^\/]+)\/(?P<returnid>[0-9]+)$/", array("action"=>"default"));
Re: Having Problems getting CTLModuleMaker module to work with 1.6
WOW
Now it works again!
You solved my problem toooooo fast! Thanks a lot!
regards
blast
Now it works again!
You solved my problem toooooo fast! Thanks a lot!
regards
blast
Re: Having Problems getting CTLModuleMaker module to work with 1.6
Good, I'll change this in the next release.
Thanks to both of you for letting me know.
Pierre-Luc
Thanks to both of you for letting me know.
Pierre-Luc
- chuckienorton
- Forum Members
- Posts: 68
- Joined: Wed Feb 14, 2007 6:58 pm
- Location: Pasadena, California
Re: Having Problems getting CTLModuleMaker module to work with 1.6
Thanks for fast response. Yep... tested 2 categories & 2 or 3 items in the category.plger wrote: Stupid question, but I assume you created items?
I also was playing with mod_rewrite b/c I was having problems with it in general, but ended up using 'include'.
So do above changes apply to me too?
C
Re: Having Problems getting CTLModuleMaker module to work with 1.6
I don't know - if you had a blank page before clicking any link, this shouldn't be the problem. But as this is the only problem I found right now, I'd suggest to give it a try (or download the brand new release of ctlmm).
If the problem isn't there, we'll find out together where it is, but I'll need some cues because I'm not experiencing it here.
If the problem isn't there, we'll find out together where it is, but I'll need some cues because I'm not experiencing it here.
- chuckienorton
- Forum Members
- Posts: 68
- Joined: Wed Feb 14, 2007 6:58 pm
- Location: Pasadena, California
Re: Having Problems getting CTLModuleMaker module to work with 1.6
Thanks. I just uninstalled my mod...and then upgraded CTLModuleMaker, and used it to recreate my mod (portfolio). It didn't help. But I should restate.. it's not showing me a blank SCREEN.. just blank section where the porftolio is supposed to show up. I added {cms_module module="portfolio"} to the site page, and followed other instructions, and yet that section is totally blank on the frontend.plger wrote: I don't know - if you had a blank page before clicking any link, this shouldn't be the problem. But as this is the only problem I found right now, I'd suggest to give it a try (or download the brand new release of ctlmm).
If the problem isn't there, we'll find out together where it is, but I'll need some cues because I'm not experiencing it here.
It's running in MAMP now, or I would give you link.
Thanks for being so helpful.
Re: Having Problems getting CTLModuleMaker module to work with 1.6
Ok. As everything works fine on my side, you'll have to help me find the problem.
In your page, where you put the {cms_module module="portfolio"}, disable the wysiwyg just to make sure it's not encoding the tag (it shouldn't happen, but better safe than sorry).
If you can, edit the config.php file, set the debug mode on ( $config["debug"] = true; ), and let me know if any error message appears on the page.
If you can, edit the action.default.php file (of the portfolio module), and just below the if(!isset($gCms)) exit; line, add :
print_r($params);
and tell me what gets printed on the page.
Give me the content of the module's dna file.
In your page, where you put the {cms_module module="portfolio"}, disable the wysiwyg just to make sure it's not encoding the tag (it shouldn't happen, but better safe than sorry).
If you can, edit the config.php file, set the debug mode on ( $config["debug"] = true; ), and let me know if any error message appears on the page.
If you can, edit the action.default.php file (of the portfolio module), and just below the if(!isset($gCms)) exit; line, add :
print_r($params);
and tell me what gets printed on the page.
Give me the content of the module's dna file.
- chuckienorton
- Forum Members
- Posts: 68
- Joined: Wed Feb 14, 2007 6:58 pm
- Location: Pasadena, California
Re: Having Problems getting CTLModuleMaker module to work with 1.6
Thanks! Will do this later today. 

- chuckienorton
- Forum Members
- Posts: 68
- Joined: Wed Feb 14, 2007 6:58 pm
- Location: Pasadena, California
Re: Having Problems getting CTLModuleMaker module to work with 1.6
@piger .. here is print_r results: Array ( [module] => portfolio [action] => default )
wouldn't let me attach a .dna file, so I simply changed the filetype to .txt.

wouldn't let me attach a .dna file, so I simply changed the filetype to .txt.

- Attachments
-
[The extension txt has been deactivated and can no longer be displayed.]
Re: Having Problems getting CTLModuleMaker module to work with 1.6
Thanks.
Does the problem persist when you have several "Clients"? Because I did experience the problem here, but it was only when there was only one client to display.
My diagnosis:
- Because of a bug on my part, the default detail template wasn't created (just the default list template)
- When you attempt to display elements, if you have only one element, the default action will show directly details instead of listing a single element (you can change that behavior in settings)
- But as there is no template for details, nothing shows up.
Solution:
Create a new template (which uses $item and it's properties - see the template variables tab) and set it as the default detail template in the combo box.
I will try to correct this in CTLMM quickly.
Thanks for reporting it.
Pierre-Luc
Does the problem persist when you have several "Clients"? Because I did experience the problem here, but it was only when there was only one client to display.
My diagnosis:
- Because of a bug on my part, the default detail template wasn't created (just the default list template)
- When you attempt to display elements, if you have only one element, the default action will show directly details instead of listing a single element (you can change that behavior in settings)
- But as there is no template for details, nothing shows up.
Solution:
Create a new template (which uses $item and it's properties - see the template variables tab) and set it as the default detail template in the combo box.
I will try to correct this in CTLMM quickly.
Thanks for reporting it.
Pierre-Luc
- chuckienorton
- Forum Members
- Posts: 68
- Joined: Wed Feb 14, 2007 6:58 pm
- Location: Pasadena, California
Re: Having Problems getting CTLModuleMaker module to work with 1.6
Changing settings to show the first page even if only one item worked, showing a menu with the one item linked on it.
Then for the detail template I added this:
{$pagemenu}
{$leveltitle}
{$item->name}
{$item->clienttestimony}
{$item->clientshorttest}
{foreach from=$itemlist item="item"}
{$item->name}
{$item->clienttestimony}
{$item->clientshorttest}
{/foreach}
But had no luck. IT's still a blank page, except for printing out this: Array ( [alias] => Pechanga [returnid] => 16 [action] => default [inline] => [module] => portfolio )
Thanks,
C
Then for the detail template I added this:
{$pagemenu}
{$leveltitle}
{$item->name}
{$item->clienttestimony}
{$item->clientshorttest}
{foreach from=$itemlist item="item"}
{$item->name}
{$item->clienttestimony}
{$item->clientshorttest}
{/foreach}
But had no luck. IT's still a blank page, except for printing out this: Array ( [alias] => Pechanga [returnid] => 16 [action] => default [inline] => [module] => portfolio )
Thanks,
C