Page 1 of 3

CTL Module Maker creates blank modules?

Posted: Mon Jan 04, 2010 4:55 pm
by tinabeans
I'm running CTLModuleMaker 1.8.9 on CMS Made Simple 1.6.4 "Moindou." When I use CTL Module Maker to create a new Module, everything seems to work and it successfully creates all the files and installs the new module. However when I go to content -> the module I just made, the page shows up blank. The CMS header is there, and the name of the module, but nothing else (no CMS footer either). I checked my admin permissions and I have all the permissions to edit. I also made sure all the image/file directories needed by this module exist. What else could it be? Has this happened to anyone else before?

Thanks!

Re: CTL Module Maker creates blank modules?

Posted: Mon Jan 04, 2010 5:19 pm
by tinabeans
Just checked the server logs too. Nothing fishy reported. No Javascript errors either. Verrry strange.

[SOLVED] Re: CTL Module Maker creates blank modules?

Posted: Wed Feb 17, 2010 9:02 pm
by patak
I have exactly the same probloem (CTLModuleMaker 1.8.9.3, CMSMS MLE 1.6.6) :-(

Re: CTL Module Maker creates blank modules?

Posted: Thu Feb 18, 2010 10:02 am
by klenkes
Hi.
Most of the time this comes from a value you added to show in the the adminpart, like images or links which contain HTML tags and stuff like that. It crashes the display of the tabs and nothing is displayed.

What did you specify beside alias,name,active... and so on?

Bernd

Re: CTL Module Maker creates blank modules?

Posted: Thu Feb 18, 2010 5:55 pm
by patak
Hi, thanks for replay!
In my case I have postdate (date format) url (long text) and file (other file). Everything is OK if file is not specified. File specifying leads to mentioned bug.

Re: CTL Module Maker creates blank modules?

Posted: Thu Feb 18, 2010 7:05 pm
by klenkes
I just took a look into the CTLModulemaker FAQ and this case is mentioned there.
Under: How are the defaultadmin panels generated?

There you can see how to change the behaviour of the adminpanel. At first it looks pretty complex but after a bit of reading it sounds not so difficult eanymore  ;)

Re: CTL Module Maker creates blank modules?

Posted: Thu Mar 04, 2010 5:11 pm
by patak
I am surlly such a fool, but I could not figure out what might be wrong. Could you please help?

Re: CTL Module Maker creates blank modules?

Posted: Fri Mar 05, 2010 8:48 am
by klenkes
patak wrote: I am surlly such a fool, but I could not figure out what might be wrong. Could you please help?
Couldn't hurt if I take a look at it, but in order to do so I would need DNA file of your module.

But I assume it is in czech language... this would be a problem  ;)

Did you try to get rid of fields that could cause problems in the display?

Re: CTL Module Maker creates blank modules?

Posted: Fri Mar 05, 2010 9:12 am
by patak
Hi klenkes,
thank you very much for replay. Here is auto exported dna file - (in English :-) ).
It works perfect to the time when I try to upload a pdf file. After that I can see only what is on attached screen.

Re: CTL Module Maker creates blank modules?

Posted: Fri Mar 05, 2010 4:38 pm
by klenkes
Hey great!
I think I will take a look at it tomorrow.
Snow and rain, so no need to leave the house  :D

Re: CTL Module Maker creates blank modules?

Posted: Sat Mar 06, 2010 11:42 am
by klenkes
Hi patak.

Today's your lucky day! I attached the adminpanel file.

In your directory /press/templates/ rename the file adminpanel.tpl to adminpanel-ORG.tpl.
Then copy the attached file into the directory and remove the .txt extension.

I commented my changes in the file so that your can choose what to display in the admin panel.
For now it is the filename and filesize.

Hope it works for you!

SOLVED Re: CTL Module Maker creates blank modules?

Posted: Sat Mar 06, 2010 1:09 pm
by patak
Wow, it works. Thank you VERY much!

Re: CTL Module Maker creates blank modules?

Posted: Sat Mar 06, 2010 1:46 pm
by klenkes
Hey great!
Please add [SOLVED] to your first post.
Have a nice day!

Bernd

Re: CTL Module Maker creates blank modules?

Posted: Mon Mar 08, 2010 11:17 am
by Brandt
I've got the same problem after I attach images. My admin page looks the same as the one above.

I tried through understand the FAQ page, but without succes.

I have made three levels

Category, Subcategory, Products

In each of these levels I put an input called 'foto' (photo) where you can upload a photo. After saving it, it leaves me with an empty admin page, like the one shown above on this forum.

Can anybody tell me what it is I have to change?

I changed this line:

{$oneitem->$oneval}

into these lines:



{if $oneval == 'foto_input'}
{if $oneitem->$oneval != ""}{$oneitem->$oneval->filename}{/if}
{else}
{$oneitem->$oneval}
{/if}




Thanks in advance!

Brandt

Re: CTL Module Maker creates blank modules?

Posted: Mon Mar 08, 2010 7:50 pm
by klenkes
Hi Brandt.

You didn't write if it works like you want it to?

If you want to display the image you should use something like this:


  {if $oneval == 'foto_input'}
  {if $oneitem->$oneval != ""}$oneval->filepath}" />{/if}
  {else}
  {$oneitem->$oneval}
{/if}

otherwise you would only have the filename displayed and not the image.
If the images are large I suggest to use
{$oneitem->$oneval->thumbnail} instead of {$oneitem->$oneval->filepath}