We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

What does the little "1" display in my module control panel pages?

Development and Programming

Will Smith's avatar
Will Smith
76 posts
16 years ago
Will Smith's avatar Will Smith

Hi all,

I’m attempting to do my first module, so forgive this newb question. I scoured the documentation and forums, but couldn’t find an answer.

ExpressionEngine sticks a little “1” (the single digit character) in my module’s control panel pages. What is this, why is it being output, and how do I turn it off?

The full HTML code that is being output is:

<div class='defaultSmall' >1</div>

Thanks for your help!

Will

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Are you using $DSP->table_close() in your module’s control panel? If so, cut and paste said code, please. It sounds like you might be doing something like:

$DSP->table_close(TRUE);

When cast as a string, boolean TRUE would output a 1.

       
Will Smith's avatar
Will Smith
76 posts
16 years ago
Will Smith's avatar Will Smith

Hey Derek,

Thanks for replying. You’re exactly right. My code is:

$DSP->body .= $DSP->table_close(TRUE);

So how can I have there be space below the table, but without it outputting a “1”? Do I have to specify something specific as the argument to table_close()?

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Yes, you will specify the markup / text you want to be placed there, e.g: $DSP->table_close(NBS)

       
Will Smith's avatar
Will Smith
76 posts
16 years ago
Will Smith's avatar Will Smith

That did it. Thanks, Derek. Great support.

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Glad to help, Will!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.