Home Download Buy Blog Forum Support

Indentation Fails

Indentation Fails

Postby raptor235 on Fri Dec 07, 2012 4:18 pm

Seems like there is some hard limit of number of rows in an array... for example

Code: Select all
   $fields[] = array(
      array('label' => 'Main Body Background Color',      'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Main Sub Navigation Text Color',   'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Main Sub Body Background Color',   'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Widget Background',            'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      
      );

   $fields[] = array(
      array('label' => 'Left Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
      array('label' => 'Center Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
      array('label' => 'Right Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
      );

looks fine

but when more lines are added to 1st array the indentation starts to fail

Code: Select all
   $fields[] = array(
      array('label' => 'Main Body Background Color',      'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Main Sub Navigation Text Color',   'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Main Sub Body Background Color',   'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Widget Background',            'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Top Sub Menu - Text Color',      'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Top Sub Menu - Background Color',   'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Top Sub Menu - Border Color',      'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Logo',                     'desc' => '','type' => 'upload'         ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Button Facebook',               'desc' => '','type' => 'upload'         ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Facebook URL',               'desc' => '','type' => 'text'         ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Button Twitter',               'desc' => '','type' => 'upload'         ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Twitter URL',                  'desc' => '','type' => 'text'         ,'std' => '','section' => 'brand','class' => ''),
      array('label' => 'Main Navigation Text Color',      'desc' => '','type' => 'Colorpicker'   ,'std' => '','section' => 'brand','class' => ''),
      );

$fields[] = array(
   array('label' => 'Left Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
   array('label' => 'Center Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
   array('label' => 'Right Slider Navigation Image','desc' => '','std' => '','type' => 'upload','section' => 'homepage','class' => ''),
   );



is there any development taking place now? seem just like textmate development now has stalled
raptor235
 
Posts: 36
Joined: Mon Jan 16, 2012 7:13 pm

Re: Indentation Fails

Postby FichteFoll on Sat Dec 08, 2012 2:40 am

I don't really get it, can you provide screenshots?
Do you have wrapping enabled?
FichteFoll
 
Posts: 401
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Re: Indentation Fails

Postby raptor235 on Fri Jan 25, 2013 6:44 pm

If you look at the 2nd array that's seperated... it's not indented to the same indentation as the 1st array.. the entire array block is one to the left...
raptor235
 
Posts: 36
Joined: Mon Jan 16, 2012 7:13 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 21 guests