CMSB v3.59 Released (PHP 8 now required)

5 posts by 2 authors in: Forums > CMS Builder
Last Post: July 10, 2023   (RSS)

By Dave - July 10, 2023

Hi Jeff, 

I don't think that was changed recently, but if it was we can look at reverting it.  Which version did you last have that in and what's the exact HTML that's being output or that you're looking for?  

Thanks!

Dave Edis - Senior Developer
interactivetools.com

By kitsguru - July 10, 2023

It may have been a custom mod on my part that I did not document. It is a very handy mod.

cmsb/lib/menus/default/list_functions.php

function _getColumnDisplayValueAndAttributes($fieldname, &$record) {
  global $schema, $tableName;
  $fieldValue  = @$record[$fieldname];
  $fieldSchema = @$schema[ $fieldname ];
  if ($fieldSchema) { $fieldSchema['name'] = $fieldname; }

  // default display value and attribute
  if (!is_array($fieldValue)) { $fieldValue = htmlencode($fieldValue); }
  $displayValue = $fieldValue;

  //$tdAttributes = "style='text-align:left'";
  $tdAttributes = "style='text-align:left' data-column='$fieldname'"; // JAS mod

...
Jeff Shields

By kitsguru - July 10, 2023

Another mod I find useful is adding a clearfix to the tabgroup to prevent unsightly display when displaying some text in a separator tab

## cmsb/lib/fieldtypes/tabGroup.php

around line 40

$html .= '<div class="tab-content clearfix" id="sectionTabContent">'; // JAS add clearfix

Jeff Shields

By Dave - July 10, 2023

Hi Jeff, 

Ok, thanks.  I've added both of those changes and released BETA 2 here: 
https://www.interactivetools.com/forum/forum-posts.php?postNum=2246604

Let me know any further feedback on that thread.

Dave Edis - Senior Developer
interactivetools.com