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

$DSP->table_qcell and colspan

Development and Programming

vinci's avatar
vinci
85 posts
17 years ago
vinci's avatar vinci

How can I add colspan to a quick cell? I have tried variations of:

$DSP->table_qcell(‘tableHeadingAlt’, ‘a title’, ”, array(‘colspan’ => ‘5’))

But I can’t get it to work.

       
Mr. Wilson's avatar
Mr. Wilson
131 posts
17 years ago
Mr. Wilson's avatar Mr. Wilson

colspan isn’t one of the available options with a quick cell. You might instead use $DSP->td(), whose parameters are: style, width, colspan, rowspan, valign, align. However, note that td() and table_qcell() are both deprecated:

// DEPRECATED DISPLAY FUNCTIONS
    // ------------------------------------------------------------------------    
    // ------------------------------------------------------------------------        
    
    // At present we're still using these so they have to stay here.
    // Once we've gone throgh the entire control panel and replaced these
    // function calls with the new versions we can kill them.
       
vinci's avatar
vinci
85 posts
17 years ago
vinci's avatar vinci

Thanks for the reply… so they will be replaced with quick cell then? This explains why they arent mentioned in the developers guide.

       
Milsoft's avatar
Milsoft
27 posts
16 years ago
Milsoft's avatar Milsoft

if td() and table_qcell() are deprecated, what is the alternative? do we just type in our code <td>hi</td>? Or is there a new function for table cells?

Thanks!

       

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.