chuckienorton
Forum Members

Karma: 0
Offline
Posts: 68
Location: Pasadena, California
|
 |
« on: 24 Jun 2009, 03:27 » |
|
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: <ul> {foreach from=$itemlist item="item"} <li>{$item->detaillink} {$item->name}</li> {/foreach} </ul>
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!
|
|
|
|
|
Logged
|
|
|
|
plger
Forum Members

Karma: 11
Offline
Posts: 183
|
 |
« Reply #1 on: 24 Jun 2009, 07:41 » |
|
Stupid question, but I assume you created items?
|
|
|
|
|
Logged
|
|
|
|
blast2007
Power Poster
 
Karma: 9
Offline
Posts: 431
|
 |
« Reply #2 on: 24 Jun 2009, 08:48 » |
|
Strange behavior also here with release 1.8.7.1 and mod_rewrite turned on. As test install demo of 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
|
|
|
|
|
Logged
|
|
|
|
plger
Forum Members

Karma: 11
Offline
Posts: 183
|
 |
« Reply #3 on: 24 Jun 2009, 09:20 » |
|
There's indeed a problem, I'll look into it. Thanks,
|
|
|
|
|
Logged
|
|
|
|
plger
Forum Members

Karma: 11
Offline
Posts: 183
|
 |
« Reply #4 on: 24 Jun 2009, 09:45 » |
|
In the module file (xxx.module.php), in function SetParemeters, try adding array("action"=>"default") to all RegisterRoute calls... for example: $this->RegisterRoute("/[pP]rodcatalogue\/([Dd]etail)\/(?P<alias>[^\/]+)\/(?P<returnid>[0-9]+)$/"); becomes $this->RegisterRoute("/[pP]rodcatalogue\/([Dd]etail)\/(?P<alias>[^\/]+)\/(?P<returnid>[0-9]+)$/", array("action"=>"default"));
|
|
|
|
|
Logged
|
|
|
|
blast2007
Power Poster
 
Karma: 9
Offline
Posts: 431
|
 |
« Reply #5 on: 24 Jun 2009, 10:09 » |
|
WOW Now it works again!
You solved my problem toooooo fast! Thanks a lot!
regards blast
|
|
|
|
|
Logged
|
|
|
|
plger
Forum Members

Karma: 11
Offline
Posts: 183
|
 |
« Reply #6 on: 24 Jun 2009, 10:10 » |
|
Good, I'll change this in the next release. Thanks to both of you for letting me know. Pierre-Luc
|
|
|
|
|
Logged
|
|
|
|
chuckienorton
Forum Members

Karma: 0
Offline
Posts: 68
Location: Pasadena, California
|
 |
« Reply #7 on: 24 Jun 2009, 10:34 » |
|
Stupid question, but I assume you created items?
Thanks for fast response. Yep... tested 2 categories & 2 or 3 items in the category. 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
|
|
|
|
|
Logged
|
|
|
|
plger
Forum Members

Karma: 11
Offline
Posts: 183
|
 |
« Reply #8 on: 24 Jun 2009, 10:45 » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
chuckienorton
Forum Members

Karma: 0
Offline
Posts: 68
Location: Pasadena, California
|
 |
« Reply #9 on: 24 Jun 2009, 15:57 » |
|
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.
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. It's running in MAMP now, or I would give you link. Thanks for being so helpful.
|
|
|
|
|
Logged
|
|
|
|
plger
Forum Members

Karma: 11
Offline
Posts: 183
|
 |
« Reply #10 on: 24 Jun 2009, 16:23 » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
chuckienorton
Forum Members

Karma: 0
Offline
Posts: 68
Location: Pasadena, California
|
 |
« Reply #11 on: 24 Jun 2009, 16:39 » |
|
Thanks! Will do this later today. ;-)
|
|
|
|
|
Logged
|
|
|
|
chuckienorton
Forum Members

Karma: 0
Offline
Posts: 68
Location: Pasadena, California
|
 |
« Reply #12 on: 25 Jun 2009, 01:46 » |
|
@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.
;-)
|
|
|
|
Logged
|
|
|
|
plger
Forum Members

Karma: 11
Offline
Posts: 183
|
 |
« Reply #13 on: 25 Jun 2009, 07:05 » |
|
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
|
|
|
|
|
Logged
|
|
|
|
chuckienorton
Forum Members

Karma: 0
Offline
Posts: 68
Location: Pasadena, California
|
 |
« Reply #14 on: 25 Jun 2009, 10:50 » |
|
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
|
|
|
|
|
Logged
|
|
|
|
|