Page 1 of 2
[solved] CTLModuleMaker setup problem - no image display?
Posted: Wed Jan 21, 2009 11:17 pm
by schelle
Hi Forum,
in the ModuleMaker i setup "images be resized to width 600px height 400px" and "thumbnail resized to width 140px height 90px"
No thumbnail at the imagefolder (777)
My Template list_default:
{foreach from=$itemlist item="item"}
{$item->image} {$item->image_thumbnail}
{/foreach}
no image or thumbnail display?
I wont a sysmple pricelist: ID name wight mass price thumnail = click big image
My System: CMSMS 1.5.2 CTLModuleMaker 1.5.1
thanks for your help
Re: CTLModuleMaker setup problem - no image display?
Posted: Thu Jan 22, 2009 5:47 pm
by plger
Hi Schelle,
I take it you are able to upload files in the cms' file manager?
You wrote "No thumbnail at the imagefolder", now I don't know what image folder you specified, but are the normal images there, and if yes, have they been resized to 600x400?
Also, please check if the GD libraries are installed on your server (make a phpinfo() and check if there is a section titled "gd"), for they are needed for the image processing.
If you have the libraries and upload permissions, email me either the module you created or it's dna file, and I will check on your problem.
Pierre-Luc
Re: CTLModuleMaker setup problem - no image display?
Posted: Thu Jan 22, 2009 6:58 pm
by schelle
plger wrote:
Hi Schelle,
I take it you are able to upload files in the cms' file manager?
You wrote "No thumbnail at the imagefolder", now I don't know what image folder you specified, but are the normal images there, and if yes, have they been resized to 600x400?
Also, please check if the GD libraries are installed on your server (make a phpinfo() and check if there is a section titled "gd"), for they are needed for the image processing.
If you have the libraries and upload permissions, email me either the module you created or it's dna file, and I will check on your problem.
Pierre-Luc
Thank you Pierre-Luc,
the GD works! Now i setup the imagersized 640x320 and 140x90 - the thubnail it exists! but no image display! - only this 22, kiosk, etc., displayed /plthumb_kiosk.jpg
I have no idea?
schelle
My DNA:
a:2:{s:5:"infos";a:6:{s:4:"name";s:7:"ribo_pl";s:12:"friendlyname";s:7:"ribo_pl";s:11:"description";s:10:"Preisliste";s:8:"nblevels";s:1:"1";s:12:"nameofmodule";s:7:"ribo_pl";s:13:"templatelevel";s:1:"0";}s:6:"levels";a:1:{i:0;a:9:{i:0;s:6:"preise";i:1;s:3:"pr_";i:2;i:0;i:3;s:1:"6";i:6;s:1:"0";i:7;s:1:"0";i:8;s:1:"0";i:4;a:6:{i:0;a:7:{i:0;s:5:"my_id";i:1;s:1:"0";i:2;s:1:"0";i:3;s:1:"0";i:4;s:0:"";i:5;a:5:{s:11:"listoptions";s:0:"";s:8:"listmode";s:1:"1";s:8:"upfolder";s:0:"";s:5:"thumb";s:0:"";s:4:"size";s:0:"";}i:6;a:0:{}}i:1;a:7:{i:0;s:5:"preis";i:1;s:1:"0";i:2;s:1:"0";i:3;s:1:"0";i:4;s:0:"";i:5;a:5:{s:11:"listoptions";s:0:"";s:8:"listmode";s:1:"1";s:8:"upfolder";s:0:"";s:5:"thumb";s:0:"";s:4:"size";s:0:"";}i:6;a:0:{}}i:2;a:7:{i:0;s:4:"stck";i:1;s:1:"0";i:2;s:1:"0";i:3;s:1:"0";i:4;s:0:"";i:5;a:5:{s:11:"listoptions";s:0:"";s:8:"listmode";s:1:"1";s:8:"upfolder";s:0:"";s:5:"thumb";s:0:"";s:4:"size";s:0:"";}i:6;a:0:{}}i:3;a:7:{i:0;s:5:"masse";i:1;s:1:"3";i:2;s:1:"0";i:3;s:1:"0";i:4;s:0:"";i:5;a:5:{s:11:"listoptions";s:0:"";s:8:"listmode";s:1:"1";s:8:"upfolder";s:0:"";s:5:"thumb";s:0:"";s:4:"size";s:0:"";}i:6;a:0:{}}i:4;a:7:{i:0;s:7:"gewicht";i:1;s:1:"2";i:2;s:1:"0";i:3;s:1:"0";i:4;s:0:"";i:5;a:5:{s:11:"listoptions";s:0:"";s:8:"listmode";s:1:"1";s:8:"upfolder";s:0:"";s:5:"thumb";s:0:"";s:4:"size";s:0:"";}i:6;a:0:{}}i:5;a:7:{i:0;s:4:"bild";i:1;s:1:"8";i:2;s:1:"0";i:3;s:1:"0";i:4;s:0:"";i:5;a:5:{s:11:"listoptions";s:0:"";s:8:"listmode";s:1:"1";s:8:"upfolder";s:8:"pl_image";s:5:"thumb";s:6:"120 90";s:4:"size";s:7:"400 320";}i:6;a:0:{}}}i:5;s:40:"my_id,name,preis,stck,masse,gewicht,bild";}}}
Re: CTLModuleMaker setup problem - no image display?
Posted: Thu Jan 22, 2009 8:42 pm
by plger
Hi Schelle,
It seems that the values you have entered for both sizes are of the form:
120 90
while they should be of the form :
120x90
I believe that is the source of your problem.
However, the module should have warned you about this problem, but there is a small bug in this particular error checking. It will be fixed in the next release.
Simply use your dna in the modulemaker to edit your module and try to enter the sizes correctly. If you don't change anything, you can simply overwrite the old module with the new one and keep your install (and entered products), it's gonna work.
Please confirm that your problem is solved.
Pierre-Luc
Re: CTLModuleMaker setup problem - no image display?
Posted: Thu Jan 22, 2009 9:17 pm
by plger
schelle wrote:
but no image display! - only this 22, kiosk, etc., displayed /plthumb_kiosk.jpg
While reading your post again, I noticed this small bit might have escaped me...
If what you're trying to say is that instead of displaying the image, only the relative path is displayed ( /plthumb_kiosk.jpg ), this is normal.
People do different things with images, and not all of them would like to have them displayed in the standard fashion. Try something like this :
Code: Select all
<img src="uploads/images{$item->bild}" />
(The code may differ depending on your image field and upload path)
Plger
Re: CTLModuleMaker setup problem - no image display?
Posted: Sun Jan 25, 2009 12:57 am
by schelle
plger wrote:
schelle wrote:
but no image display! - only this 22, kiosk, etc., displayed /plthumb_kiosk.jpg
While reading your post again, I noticed this small bit might have escaped me...
If what you're trying to say is that instead of displaying the image, only the relative path is displayed ( /plthumb_kiosk.jpg ), this is normal.
People do different things with images, and not all of them would like to have them displayed in the standard fashion. Try something like this :
Code: Select all
<img src="uploads/images{$item->bild}" />
(The code may differ depending on your image field and upload path)
Plger

jep now it works -- thank you Plger!
bild}" rel="{$bild->bild|escape:'_thumbnail'}" class="thickbox">bild_thumbnail}" />
schelle
Re: CTLModuleMaker setup problem - no image display?
Posted: Sun Jan 25, 2009 11:18 am
by plger
Great.
Please mark the topic [solved].
Re: CTLModuleMaker setup problem - no image display?
Posted: Sun Jan 25, 2009 10:09 pm
by schelle
plger wrote:
Great.
Please mark the topic [solved].
Sorry - a new Problem: i am limit the items per page {cms_module module='preisliste' action='list' nbperpage='5'} {$pagemenu}
The limiter works, but the pagemenu shows after a click "The item could not be found." - the url:
http://www.xxxx/cmsms/preisliste/list//156.html - double slash! when i escape it in .../list/156.html comes the same message!
My system works with Pretty URLs - maybe its a problem?
schelle
Re: CTLModuleMaker setup problem - no image display?
Posted: Mon Jan 26, 2009 12:55 pm
by plger
The double slash shouldn't be problematic, but I take notice of it.
I'm pretty sure the problem has to do with pretty URLs (you might try to disable it just to see if all works well). I will try to reproduce it and will comme back to you if I can.
plger
Re: CTLModuleMaker setup problem - no image display?
Posted: Tue Jan 27, 2009 8:42 am
by schelle
plger wrote:
The double slash shouldn't be problematic, but I take notice of it.
I'm pretty sure the problem has to do with pretty URLs (you might try to disable it just to see if all works well). I will try to reproduce it and will comme back to you if I can.
plger
ok! without "pretty URLs" the menue works. in the config i setup from [$config['use_hierarchy'] = true;] to [$config['use_hierarchy'] = false;]
the Site-Alias: preisliste - why shows with "pretty URLs" /list/156.html ?
schelle
Re: CTLModuleMaker setup problem - no image display?
Posted: Tue Jan 27, 2009 10:54 am
by plger
"list" in the url stands for the "list" action of the module. The "156" should be the id of the page on which the module is called. But there should be more informations than that.
I reproduced the problem, so now I can say the pagemenu just doesn't work with internal pretty urls. I added this to the bug trackers (
http://dev.cmsmadesimple.org/bug/view/2945 ) and will try to correct it shortly. I will keep you updated when the new version comes out.
Pierre-Luc
Re: CTLModuleMaker setup problem - no image display?
Posted: Wed Jan 28, 2009 1:10 pm
by plger
The issue is corrected in version 1.6
Please update and report the results.
Re: CTLModuleMaker setup problem - no image display?
Posted: Fri Jan 30, 2009 12:42 am
by schelle
plger wrote:
The issue is corrected in version 1.6
Please update and report the results.
ok, now i use CTLModuleMaker-1.6.2.xml and i setup a new module "preisliste"with the same problem [preisliste//2/5/156.html] "The item could not be found."
when i escape this to [preisliste/2/5/156.html] comes the same "The item could not be found."
schelle
Re: CTLModuleMaker setup problem - no image display?
Posted: Fri Jan 30, 2009 10:27 am
by plger
Hi Schelle,
I apoligize, I thought I had it corrected but had forgotten a small detail.
As a way around to this problem, try specifying the "what" parameter in your tag - something like {cms_module module="preislist" what="name_of_your_level"}
To really correct the problem, follow the following steps :
1) open the action.default.php file of your created module (in modules/preislist or something)
2) find the line where it is written " // ################# WE ARE DISPLAYING A LIST VIEW"
3) just below it, add the following line :
Code: Select all
if(!isset($params["what"])) $params["what"] = $what;
4) save the file...
and everything should be fine, even if you don't precise the "what" parameter
This correction will be included in the next release of the module.
Re: CTLModuleMaker setup problem - no image display?
Posted: Fri Jan 30, 2009 11:31 am
by schelle
plger wrote:
2) find the line where it is written " // ################# WE ARE DISPLAYING A LIST VIEW"
3) just below it, add the following line :
Code: Select all
if(!isset($params["what"])) $params["what"] = $what;
Hi Pierre-Luc,
i added this as your given! and i added the "what params" at the site
Code: Select all
{cms_module module='preisliste' what='preisliste' nbperpage='5'}{$pagemenu}
no change

"The item could not be found." but the url shows now "..../preisliste/preisliste/2/5/156.html"
without "pretty URLs" it works!
schelle