<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>CMSB 3 default field width</title>
        <link>https://interactivetools.com/forum/forum-posts.php?CMSB-3-default-field-width-80398</link>
        <description></description>
        <pubDate>Mon, 13 Apr 2026 10:16:50 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;CMSB-3-default-field-width-80398" rel="self" type="application/rss+xml" />

                <item>
          <title>CMSB 3 default field width</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238244#post2238244</link>
          <description><![CDATA[<p>Hi Jeff,</p>
<p>I wrote a script that will convert field width pixels to CMSB 3.** size. </p>
<p>If you're comfortable editing PHP files, you can try the following patch.</p>
<p>Search for the following code in "\cmsb\lib\menus\default\edit_functions.php"</p>
<p><code>$styleClassWidth = getBootstrapFieldWidthClass(@$fieldSchema['fieldWidth']);</code></p>
<p>and replace it with the following code:</p>
<p><code>  // get field width class<br />  $widthName      = @$fieldSchema['fieldWidth']; // eg: tiny, small, medium, large, full<br />  $isWidthNumeric = preg_match('/^\d+$/', $widthName);<br />  if ($isWidthNumeric) {  // convert legacy v2.xx field width pixels to named size (eg: 340 to small)<br />    $pixels = @$fieldSchema['fieldWidth'];<br />    if     (0 &lt; $pixels   &amp;&amp; $pixels &lt;= 120)  { $widthName = "tiny"; }<br />    elseif (120 &lt; $pixels &amp;&amp; $pixels &lt;= 340)  { $widthName = "small"; }<br />    elseif (340 &lt; $pixels &amp;&amp; $pixels &lt;= 675)  { $widthName = "medium"; }<br />    elseif (675 &lt; $pixels &amp;&amp; $pixels &lt;= 1010) { $widthName = "large"; }<br />    elseif (1010 &lt; $pixels)                   { $widthName = "full"; }<br />  }<br />  $styleClassWidth = getBootstrapFieldWidthClass($widthName);    </code></p>
<p>Make sure to make a full backup first.</p>
<p>In the next CMSB release, we will add a support for legacy 2.** field width pixels by converting them to CMSB 3.** size natively.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks,</p>]]></description>
          <pubDate>Tue, 09 Feb 2016 13:24:13 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238244#post2238244</guid>
        </item>
                <item>
          <title>CMSB 3 default field width</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238242#post2238242</link>
          <description><![CDATA[<p>Hi Jeff</p>
<p>Sounds good Jeff.  Keep me up to date with how you are making out.</p>
<p>Thanks!</p>
]]></description>
          <pubDate>Tue, 09 Feb 2016 11:15:25 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238242#post2238242</guid>
        </item>
                <item>
          <title>CMSB 3 default field width</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238241#post2238241</link>
          <description><![CDATA[<p>Thanks Ross,</p>
<p>I used my text editor with regexp to replace all unassigned fieldWidth to large as my default, then found ones that had width set to a pixel value and set those to corresponding sizes. Now I only need to adjust a few by hand where large is too big or when full width is desired.</p>
<p>I use git for version control so never need backups as I can always revert the changes for any commit.</p>]]></description>
          <pubDate>Tue, 09 Feb 2016 10:50:20 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238241#post2238241</guid>
        </item>
                <item>
          <title>CMSB 3 default field width</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238229#post2238229</link>
          <description><![CDATA[<p>Hi Jeff</p>
<p>Thanks for posting.</p>
<p>I know what you mean about having to changing the field length for each field individually.  </p>
<p>An advanced option you have is modifying the schema file directly.   If you are going to try this, make sure to have backups of both your database (you can use the backup tool in CMS Builder) and the schema file itself.  </p>
<p>When you open the schema file, look for this attribute:</p>
<p><code>'fieldWidth' =&gt; '',</code></p>
<p>There will be one of these for each text field in your section. Other field types won't have this attribute.</p>
<p>What you can do is a find and replace and change that to any of the following options:</p>
<p>Tiny<br />Small<br />Medium<br />Large<br />Full Width<br /><br />Does that all make sense? I recommend asking any questions you have before trying anything.</p>
<p>Keep me up to date with how you are making out.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Tue, 09 Feb 2016 09:10:49 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238229#post2238229</guid>
        </item>
                <item>
          <title>CMSB 3 default field width</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238197#post2238197</link>
          <description><![CDATA[<p>I am wondering what the default field withs are in the section editor and if tnere is an easy way to set it for older sections. i am finding going through and manually adjusting each field for all the sections very tedious.</p>
<p>Suggestions?</p>]]></description>
          <pubDate>Fri, 05 Feb 2016 18:51:22 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238197#post2238197</guid>
        </item>
              </channel>
    </rss>
  