CTL Module Maker creates blank modules?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
tinabeans
Forum Members
Forum Members
Posts: 10
Joined: Fri Sep 21, 2007 5:35 am

CTL Module Maker creates blank modules?

Post 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!
tinabeans
Forum Members
Forum Members
Posts: 10
Joined: Fri Sep 21, 2007 5:35 am

Re: CTL Module Maker creates blank modules?

Post by tinabeans »

Just checked the server logs too. Nothing fishy reported. No Javascript errors either. Verrry strange.
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

patak
Forum Members
Forum Members
Posts: 29
Joined: Thu Jun 12, 2008 2:55 pm
Location: Prague

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

Post by patak »

I have exactly the same probloem (CTLModuleMaker 1.8.9.3, CMSMS MLE 1.6.6) :-(
Last edited by patak on Sat Mar 06, 2010 2:20 pm, edited 1 time in total.
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: CTL Module Maker creates blank modules?

Post 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
patak
Forum Members
Forum Members
Posts: 29
Joined: Thu Jun 12, 2008 2:55 pm
Location: Prague

Re: CTL Module Maker creates blank modules?

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

Re: CTL Module Maker creates blank modules?

Post 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  ;)
patak
Forum Members
Forum Members
Posts: 29
Joined: Thu Jun 12, 2008 2:55 pm
Location: Prague

Re: CTL Module Maker creates blank modules?

Post by patak »

I am surlly such a fool, but I could not figure out what might be wrong. Could you please help?
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: CTL Module Maker creates blank modules?

Post 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?
patak
Forum Members
Forum Members
Posts: 29
Joined: Thu Jun 12, 2008 2:55 pm
Location: Prague

Re: CTL Module Maker creates blank modules?

Post 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.
Attachments
ctlmodulemaker.jpg

[The extension txt has been deactivated and can no longer be displayed.]

klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: CTL Module Maker creates blank modules?

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

Re: CTL Module Maker creates blank modules?

Post 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!
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

patak
Forum Members
Forum Members
Posts: 29
Joined: Thu Jun 12, 2008 2:55 pm
Location: Prague

SOLVED Re: CTL Module Maker creates blank modules?

Post by patak »

Wow, it works. Thank you VERY much!
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: CTL Module Maker creates blank modules?

Post by klenkes »

Hey great!
Please add [SOLVED] to your first post.
Have a nice day!

Bernd
Brandt
Forum Members
Forum Members
Posts: 55
Joined: Fri Mar 05, 2010 10:04 am
Location: Nijmegen / Freiburg

Re: CTL Module Maker creates blank modules?

Post 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
Last edited by Brandt on Mon Mar 08, 2010 2:13 pm, edited 1 time in total.
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: CTL Module Maker creates blank modules?

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

Return to “Modules/Add-Ons”