<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title></title>
        <link>https://interactivetools.com/forum/forum-search.php?k=user%3Aterryally</link>
        <description></description>
        <pubDate>Wed, 27 May 2026 16:08:11 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Aterryally&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Date range in WHERE clause</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244708#post2244708</link>
          <description><![CDATA[<p>Hi Greg,</p>
<p>Thanks for your expert eye ... and my bad :(</p>
<p>I am using a text field for the date rather than datetime. :( :(</p>
<p>I would never have spotted this in my lifetime.</p>
<p>Thank you very much. Much appreciated.</p>
<p>Regards</p>
<p>Terry</p>]]></description>
          <pubDate>Mon, 11 May 2020 10:52:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244708#post2244708</guid>
        </item>
                <item>
          <title>Date range in WHERE clause</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244702#post2244702</link>
          <description><![CDATA[<p>Hi Jerry,</p>
<p>That is strange, is it not?</p>
<p>$thisyear should start from 2020 because the operators being used are "greater than or equal to" therefore if 2020 is in the database, it should start at 2020 but if it is not, then it should start at 2021.</p>
<p>When I write it long-hand (as per below) it works as intended. That is the reason that I posted this query because it's not working in CMSB.</p>
<pre class="language-markup"><code>	    &lt;?php include getcwd()."/includes/mysql_cyclones_connect.php";
			$date = DATE('Y');
			$futuredate = DATE('Y') +4;
			$query = "SELECT * FROM names WHERE year &gt;= $date AND year &lt;= $futuredate";
			$result = $con-&gt;query($query);
			$row = $result-&gt;fetch_assoc();

			$CycloneList = array(); 

			foreach ($result as $row) { 
				$Year = $row['year'];
					if (!array_key_exists($Year, $CycloneList)) { 
						$CycloneList[$Year] = array(); 
					}
				$CycloneList[$Year][] = $row; 
			}
		?&gt;</code></pre>

<p>Regards</p>
<p>Terry</p>]]></description>
          <pubDate>Sun, 10 May 2020 16:43:38 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244702#post2244702</guid>
        </item>
                <item>
          <title>Date range in WHERE clause</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244699#post2244699</link>
          <description><![CDATA[<p>Hi Jerry,</p>
<p>It is meant to show the current year +4 years i.e. 2020 - 2024.</p>
<p>What I do not understand is why this code does not produce that result.</p>
<p>The code below actually shows every record in the database up to 2023 and not 2020-2024.</p>
<pre class="language-markup"><code>	$thisyear = DATE('Y');
	$futuredate = DATE('Y') +4;

	list($storm_namesRecords, $storm_namesMetaData) = getRecords(array(
	'tableName'   =&gt; 'storm_names',
	'loadUploads' =&gt; true,
	'allowSearch' =&gt; false,
	'where' =&gt; 'storm_year &gt;= "'.$thisyear.'"' and 'storm_year &lt;= "'.$futuredate.'"',
	'orderBy'	=&gt;	'storm_year ASC, storm_name ASC',
	));</code></pre>]]></description>
          <pubDate>Sun, 10 May 2020 14:05:42 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244699#post2244699</guid>
        </item>
                <item>
          <title>Date range in WHERE clause</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244694#post2244694</link>
          <description><![CDATA[<p>Hi,</p>
<p>I need to display a list of names per year for a four-year period, starting at whatever the current year is. </p>
<p>I tried the following but this returned every year in the database from 2004 to 2024.</p>
<pre class="language-markup"><code>	$thisyear = DATE('Y');
	$futuredate = DATE('Y') +4;

	list($storm_namesRecords, $storm_namesMetaData) = getRecords(array(
	'tableName'   =&gt; 'storm_names',
	'loadUploads' =&gt; true,
	'allowSearch' =&gt; false,
	'where' =&gt; 'storm_year &gt;= "'.$date.'"' and 'storm_year &lt;= "'.$futuredate.'"',
	'orderBy'	=&gt;	'storm_year ASC, storm_name ASC',
	));</code></pre>

<p>I then tried the following which returns 2020 - 2023. If I change the 'futuredate' to +5 years, it does the trick but I am wondering what is the correct syntax?</p>
<pre class="language-markup"><code>	$thisyear = DATE('Y');
	$futuredate = DATE('Y') +4;

	list($storm_namesRecords, $storm_namesMetaData) = getRecords(array(
	'tableName'   =&gt; 'storm_names',
	'loadUploads' =&gt; true,
	'allowSearch' =&gt; false,
	'where' =&gt; "storm_year BETWEEN '$thisyear' AND '$futuredate'",
	'orderBy'	=&gt;	'storm_year ASC, storm_name ASC',
	));</code></pre>


<p>Thanks</p>
<p>Terry</p>


]]></description>
          <pubDate>Sat, 09 May 2020 08:27:25 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244694#post2244694</guid>
        </item>
                <item>
          <title>Random display - detail page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241828#post2241828</link>
          <description><![CDATA[<p>It most certainly does Dave.</p>
<p>Much appreciated.</p>]]></description>
          <pubDate>Thu, 08 Mar 2018 02:17:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241828#post2241828</guid>
        </item>
                <item>
          <title>Random display - detail page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241787#post2241787</link>
          <description><![CDATA[
<p>Is there a way to randomly show three images on a Detail Page from an upload with a max of six?</p>
<p>Shuffle is cool but it shows all the uploads.</p>

<p>Thanks</p>
<p>Terry</p>]]></description>
          <pubDate>Mon, 05 Mar 2018 02:50:02 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241787#post2241787</guid>
        </item>
                <item>
          <title>Breadcrumb displaying in reverse order</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241287#post2241287</link>
          <description><![CDATA[<p>It behaves differently in this instance to previous ones I've designed. But ... I used it primarily to float div's not nested lists.</p>
<p>Thanks for your help Zicky.</p>]]></description>
          <pubDate>Tue, 10 Oct 2017 13:44:34 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241287#post2241287</guid>
        </item>
                <item>
          <title>Breadcrumb displaying in reverse order</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241285#post2241285</link>
          <description><![CDATA[<p>Okay, I found the problem style ... I removed the float:left and everything is back in the correct sequence.</p>
<p>Why that should affect the CMSB output I have no idea but it works.</p>
<p>Terry</p>]]></description>
          <pubDate>Tue, 10 Oct 2017 12:59:00 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241285#post2241285</guid>
        </item>
                <item>
          <title>Breadcrumb displaying in reverse order</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241283#post2241283</link>
          <description><![CDATA[<p>Hi Zicky,</p>
<p>Your CSS does almost the same as mine except that it does not appear inline but as a list. After once I replace part of my original (below) to your CSS it makes it inline.</p>
<p>    .breadcrumb li ul {      display: inline;      margin: 0;      padding: 0;      float: left;    }</p>
<p>HOWEVER, the breadcrumb display generated by  CMSB still appears in reverse order. Clearly the solution has to be in the CSS which I cannot locate so I am wondering whether there is an equivalent to an orderBy where clause to make the breadcrumb appear in the correct sequence.</p>

<p>Thanks</p>
<p>Terry</p>]]></description>
          <pubDate>Tue, 10 Oct 2017 11:28:40 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241283#post2241283</guid>
        </item>
                <item>
          <title>Breadcrumb displaying in reverse order</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241270#post2241270</link>
          <description><![CDATA[<p>Hi Dave,</p>
<p>My breadcrumb is displaying in reverse order when I style it hroizontally. If I left it as an unordered list, it would be correct.</p>
<p>Rather than getting Projects &gt;&gt; 2015-2020 &gt;&gt; City &gt;&gt; Main Square. I am getting Main Square &gt;&gt; City &gt;&gt; 2015-2020 &gt;&gt; Projects.</p>
<p>How do I rectify this? My CMSB code is:</p>
<p><code>&lt;?php<br />     $ThisPage = $_SERVER['REQUEST_URI'];<br />     $NumberOfHyphens = substr_count($ThisPage, "-");<br />     $ThisPageQueryString = explode("?", $ThisPage);<br />     if($NumberOfHyphens = 0) {<br />         $ProjName = $ThisPageQueryString[1];<br />     } else {<br />         $ProjName = str_replace("-", " ", $ThisPageQueryString[1]);<br />     }<br /><br />   // load record from 'navigation_menu'<br />   list($navigation_menuRecords, $navigation_menuMetaData) = getRecords(array(<br />     'tableName'   =&gt; 'navigation_menu',<br />     'limit'       =&gt; '1',<br />     'where'=&gt; 'name="'.$ProjName.'"',<br />   ));<br />   $navigation_menuRecord = @$navigation_menuRecords[0]; // get first record<br /><br />   $CurrentPageNum = $navigation_menuRecord['num'];<br /><br />   // load records from 'navigation_menu'<br />   list($navigation_menuRecords, $selectedNavigation_menu) = getCategories(array(<br />     'tableName'            =&gt; 'navigation_menu', <br />     'categoryFormat'       =&gt; 'breadcrumb',  <br />     'selectedCategoryNum'  =&gt; $CurrentPageNum, <br />   ));<br /> ?&gt;<br /><br />       &lt;ul class="breadcrumb"&gt;<br />         &lt;?php foreach ($navigation_menuRecords as $categoryRecord): ?&gt;<br />           &lt;?php echo $categoryRecord['_listItemStart'] ?&gt;<br />       <br />           &lt;?php if ($categoryRecord['_isSelected']): ?&gt;<br />             &lt;b&gt;&lt;a href="&lt;?php echo $categoryRecord['_link'] ?&gt;"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;&lt;/b&gt;<br />           &lt;?php else: ?&gt;<br />             &lt;a href="&lt;?php echo $categoryRecord['_link'] ?&gt;"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;<br />           &lt;?php endif; ?&gt;<br />       <br />           &lt;?php echo $categoryRecord['_listItemEnd'] ?&gt;<br />         &lt;?php endforeach; ?&gt;<br />       &lt;/ul&gt;</code></p>
<p><br /> My CSS is:</p>
<p><code>    .breadcrumb li ul {<br />       display: inline;<br />       margin: 0;<br />       padding: 0;<br />       float: left;<br />     }<br />     .breadcrumb li {<br />       list-style-type: none;<br />     }<br />     .breadcrumb li ul li {<br />       padding-right: 10px;<br />     }<br />     .breadcrumb li ul li:after {<br />     content: " &gt; ";<br />     font-weight: bold;<br />     font-size: 75%;<br />     font-family: 'Arial Black';<br /> }</code></p>
<p><br />Thanks<br /><br /><br /><br /><br /><br /></p>]]></description>
          <pubDate>Sat, 07 Oct 2017 15:39:27 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241270#post2241270</guid>
        </item>
                <item>
          <title>How do I reuse a single upload multiple times rather than storing multiple copies?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241233#post2241233</link>
          <description><![CDATA[<p>Hi mizrahi,</p>
<p>Thanks for shedding light on this.</p>
<p>I created a separate section editor and then dumped that into a dropdown list ... but then I had to comb through scores of documents so I quickly dropped the idea. I've settled for duplicating.</p>
<p>Regards</p>
<p>Terry</p>
]]></description>
          <pubDate>Tue, 03 Oct 2017 11:55:56 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241233#post2241233</guid>
        </item>
                <item>
          <title>How do I reuse a single upload multiple times rather than storing multiple copies?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241229#post2241229</link>
          <description><![CDATA[<p>Hi,</p>
<p>I need to list PDF documents across multiple pages. Rather than having to upload multiple copies of the same document, is there a way to link to one single document? At the moment, I have an upload field for umlimited number of uploads in each record of a Multi Editor which ideally I would like to keep because it keeps an association with the page.</p>
<p>The only other way I can think of is to create separate upload records database with keywords, so as to filter which documents go on which page according to a unique key ... which then is problematic because I will want to use across more than one page so the filter would not work.</p>
<p>Is there a way to achieve this in CMSB?</p>
<p>Here is an illustration of how it is vs how I would like it to be:</p>
<p><strong>CURRENT SITUATION</strong></p>
<ul><li>Page 1 - FactoryDrawingZ.pdf</li>
<li>Page 7 - FactoryDrawingZ_001.pdf</li>
<li>Page 16 - FactoryDrawingZ_002.pdf</li>
</ul><p><strong>PREFERRED SITUATION</strong></p>
<ul><li>Page 1 - FactoryDrawingZ.pdf</li>
<li>Page 7 - FactoryDrawingZ.pdf</li>
<li>Page 16 - FactoryDrawingZ.pdf</li>
</ul><p>Thanks</p>
<p>Terry</p>]]></description>
          <pubDate>Sun, 01 Oct 2017 02:41:41 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241229#post2241229</guid>
        </item>
                <item>
          <title>Category menu - adding class name for main items</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241224#post2241224</link>
          <description><![CDATA[<p>Thanks Dave. I like your solution better!</p>]]></description>
          <pubDate>Thu, 28 Sep 2017 06:11:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241224#post2241224</guid>
        </item>
                <item>
          <title>Category menu - adding class name for main items</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241205#post2241205</link>
          <description><![CDATA[<p>Hi Dave,</p>
<p>Just above where I've placed this horizontal menu, I want to use the same getRecords array above it to output the "home" URL behind the page logo. I've done this using the first code below which does the trick. However a few lines later I am repeating the array to remove the LIMIT clause in order to populate the complete navigation menu using the second set of code. What I want to confirm is if there are any known problems with with CMSB if I called this the second time?</p>
<p>Thanks</p>
<p><code>&lt;?php<br />  // load records from 'navigation_menu'<br />  list($navigation_menuRecords, $navigation_menuMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'navigation_menu',<br />    <span style="color:#ff0000;">'limit'       =&gt; '1',</span><br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));<br />?&gt;<br /><br />    &lt;div class="box2"&gt;<br />        &lt;div class="container"&gt; <br />        &lt;?php foreach ($home_pageRecord['logo'] as $index =&gt; $upload): ?&gt;<br />            &lt;h1 class="navbar-brand navbar-brand_"&gt;&lt;?php foreach ($navigation_menuRecords as $record): ?&gt;&lt;a href="&lt;?php echo htmlencode($record['url']) ?&gt;"&gt;&lt;?php endforeach ?&gt;&lt;img src="&lt;?php echo htmlencode($upload['urlPath']) ?&gt;" alt="&lt;?php echo htmlencode($upload['info1']) ?&gt;"&gt;&lt;span&gt;&lt;?php echo htmlencode($upload['info1']) ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;<br />        &lt;?php endforeach ?&gt;<br />        &lt;/div&gt;<br />    &lt;/div&gt;</code></p>
<p><code>  &lt;?php<br />  // load records from 'navigation_menu'<br />  list($navigation_menuRecords, $selectedNavigation_menu) = getCategories(array(<br />    'tableName'            =&gt; 'navigation_menu', //<br />    'categoryFormat'       =&gt; 'showall',  // showall, onelevel, twolevel, breadcrumb<br />    'defaultCategory'      =&gt; 'first',    // Enter 'first', a category number, or leave blank '' for none<br />    'ulAttributes'         =&gt; 'class="submenu"',      // add html attributes to &lt;ul&gt; tags, eg: 'class="menuUL"' would output &lt;ul class="menuUL"&gt;<br />    'liAttributesCallback' =&gt; 'customMenuLIAttr',      // ADVANCED: custom function to return li attributes, eg: 'myLiAttr' and function myLiAttr($category) { return "id='li_uniqueId_{$category['num']}'"; }<br />  ));<br />  function customMenuLIAttr($category) {<br />    global $GLOBALS;<br />    return ($category['_hasChild'])? " class=\"active sub-menu\"" : "" ;<br />  }<br />  ?&gt;<br /><br />    &lt;div class="menuBox"&gt;  <br />        &lt;div class="container"&gt; <br />            &lt;nav class="navbar navbar-default navbar-static-top tm_navbar clearfix" role="navigation"&gt;<br />                &lt;ul class="nav sf-menu clearfix"&gt;<br />                &lt;?php foreach ($navigation_menuRecords as $categoryRecord): ?&gt;<br />                  &lt;?php echo $categoryRecord['_listItemStart'] ?&gt;<br />                  &lt;?php if($categoryRecord['_hasChild'] &amp;&amp; $categoryRecord['depth'] == '0'): ?&gt;<br />                    &lt;b&gt;&lt;a href="&lt;?php echo $categoryRecord['url'] ?&gt;"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;&lt;/b&gt;&lt;span&gt;&lt;/span&gt;<br />                  &lt;?php elseif($categoryRecord['_hasChild'] &amp;&amp; $categoryRecord['depth'] &gt; '0'): ?&gt;<br />                    &lt;b&gt;&lt;a href="&lt;?php echo $categoryRecord['url'] ?&gt;"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;<br />                &lt;?php else: ?&gt;<br />                    &lt;b&gt;&lt;a href="&lt;?php echo $categoryRecord['url'] ?&gt;"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;&lt;/b&gt;<br />                  &lt;?php endif ?&gt;<br />                  &lt;?php echo $categoryRecord['_listItemEnd'] ?&gt;<br />                &lt;?php endforeach; ?&gt;<br />              &lt;/ul&gt;<br />        &lt;/div&gt;<br />    &lt;/div<br /></code></p>
]]></description>
          <pubDate>Sat, 23 Sep 2017 05:54:43 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241205#post2241205</guid>
        </item>
                <item>
          <title>Category menu - adding class name for main items</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241166#post2241166</link>
          <description><![CDATA[<p>Hey Zicky,</p>
<p>I got this sorted last night and here is how I achieved it ... first by using two of the advanced options to insert classes into the nested &lt;ul&gt; tags and into the &lt;li&gt; tags which have submenu items.</p>
<p><code> // load records from 'navigation_menu'<br />   list($navigation_menuRecords, $selectedNavigation_menu) = getCategories(array(<br />     'tableName'            =&gt; 'navigation_menu', //<br />     'categoryFormat'       =&gt; 'showall',  // showall, onelevel, twolevel, breadcrumb<br />     'defaultCategory'      =&gt; 'first',    // Enter 'first', a category number, or leave blank '' for none<br />     <br />     // advanced options (you can safely ignore these)<br />    <span style="color:#ff0000;">'ulAttributes'         =&gt; 'class="submenu"',      // add html attributes to &lt;ul&gt; tags, eg: 'class="menuUL"' would output &lt;ul class="menuUL"&gt;</span><br /><span style="color:#ff0000;">     'liAttributesCallback' =&gt; 'customMenuLIAttr',      // ADVANCED: custom function to return li attributes, eg: 'myLiAttr' and function myLiAttr($category) { return "id='li_uniqueId_{$category['num']}'"; }</span><br />   ));<br /><br /><span style="color:#ff0000;">  function customMenuLIAttr($category) {</span><br /><span style="color:#ff0000;">     global $GLOBALS;</span><br /><span style="color:#ff0000;">     return ($category['_hasChild'])? " class=\"active sub-menu\"" : "" ;</span><br /><span style="color:#ff0000;">   }</span></code></p>

<p>This is how the code looked when the classes were inserted into the &lt;ul&gt; and &lt;li&gt; tags. The remaining thing to achieve is the placement of the &lt;span&gt;&lt;/span&gt; tags.</p>
<p><code><span style="color:#0000ff;">&lt;ul class="nav sf-menu clearfix"&gt; // this is hardcoded in</span><br /> <span style="color:#ff0000;">&lt;li class="active sub-menu"&gt;</span>&lt;a href="#"&gt;Home&lt;/a&gt;<span style="color:#0000ff;"><strong>&lt;span&gt;&lt;/span&gt;</strong></span> <span style="color:#ff0000;">// class inserted by the CMSB getCategories function:: 'liAttributesCallback' =&gt; 'customMenuLIAttr',</span><br /><span style="color:#ff0000;">  &lt;ul class="submenu"&gt; // class inserted by the CMSB getCategories function:: 'ulAttributes'=&gt;'class="submenu"',</span><br />     &lt;li&gt;&lt;a href="#"&gt;Lorem ipsum dolor sit<span style="color:#0000ff;"><strong>&lt;span&gt;&lt;/span&gt;</strong></span>&lt;/a&gt;<br />      <span style="color:#ff0000;">&lt;ul class="submenu"&gt; // class inserted by the CMSB getCategories function:: 'ulAttributes'=&gt;'class="submenu"',</span><br />       &lt;li&gt;&lt;a href="#"&gt;Lorem ipsum dolor sit&lt;/a&gt;&lt;/li&gt;<br />       &lt;li&gt;&lt;a href="#"&gt;Conse ctetur adipisicing&lt;/a&gt;&lt;/li&gt;<br />       &lt;li&gt;&lt;a href="#"&gt;Elit sed do eiusmod tempor&lt;/a&gt;&lt;/li&gt;<br />       &lt;li&gt;&lt;a href="#"&gt;Incididunt ut labore&lt;/a&gt;&lt;/li&gt;<br />       &lt;li&gt;&lt;a href="#"&gt;Et dolore magna aliqua&lt;/a&gt;&lt;/li&gt;<br />      &lt;/ul&gt;  <br />     &lt;/li&gt;<br />     &lt;li&gt;&lt;a href="#"&gt;Conse ctetur adipisicing&lt;/a&gt;&lt;/li&gt;<br />     &lt;li&gt;&lt;a href="#"&gt;Elit sed do eiusmod tempor&lt;/a&gt;&lt;/li&gt;<br />     &lt;li&gt;&lt;a href="#"&gt;Incididunt ut labore&lt;/a&gt;&lt;/li&gt;<br />     &lt;li&gt;&lt;a href="#"&gt;Et dolore magna aliqua&lt;/a&gt;&lt;/li&gt;<br />    &lt;/ul&gt;<br />   &lt;/li&gt;<br />   &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;<br />   &lt;li&gt;&lt;a href="#"&gt;Blog&lt;/a&gt;&lt;/li&gt;<br />   &lt;li&gt;&lt;a href="#"&gt;Gallery&lt;/a&gt;&lt;/li&gt;<br />   &lt;li&gt;&lt;a href="#"&gt;Contacts&lt;/a&gt;&lt;/li&gt;<br /> &lt;/ul&gt;</code></p>
<p><br />The <span style="color:#ff0000;">&lt;span&gt;&lt;/span&gt;</span> tags is then controlled by CSS to insert a triangle pointing down or to the right to indicate that the menu was either a dropdown or expandable horizontally. For the dropdown menu it is to be inserted <span style="text-decoration:underline;"><strong>after</strong></span> the anchor tag is closed i.e. <span style="color:#ff6600;"><span><span style="color:#0000ff;">&lt;a href="#"&gt;XX&lt;/a&gt;</span><span style="color:#ff0000;">&lt;span&gt;&lt;/span&gt;</span></span></span>. While for the horizontal expansion it must occur <span style="text-decoration:underline;">before</span> the anchor tag closes i.e. <span style="color:#ff6600;"><span><span style="color:#0000ff;">&lt;a href="#"&gt;YY</span><span style="color:#ff0000;">&lt;span&gt;&lt;/span&gt;</span></span><span style="color:#0000ff;">&lt;/a&gt;</span></span>. To achieve this, I used conditional statements to determine the category depth and specify where to place the span tags.</p>
<p><code>&lt;ul class="nav sf-menu clearfix"&gt;<br /> &lt;?php foreach ($navigation_menuRecords as $categoryRecord): ?&gt;<br />   &lt;?php echo $categoryRecord['_listItemStart'] ?&gt;<br />   <span style="color:#ff0000;">&lt;?php if($categoryRecord['_hasChild'] &amp;&amp; $categoryRecord['depth'] == '0'): ?&gt;</span><br />     &lt;b&gt;<span style="color:#0000ff;"><strong>&lt;a href="&lt;?php echo $categoryRecord['url'] ?&gt;"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;</strong></span>&lt;/b&gt;<span style="color:#ff0000;">&lt;span&gt;&lt;/span&gt;</span><br />   <span style="color:#ff0000;">&lt;?php elseif($categoryRecord['_hasChild'] &amp;&amp; $categoryRecord['depth'] &gt; '0'): ?&gt;</span><br />     &lt;b&gt;<span><strong>&lt;a href="&lt;?php echo $categoryRecord['url'] ?&gt;"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;</strong><span style="color:#ff0000;">&lt;span&gt;&lt;/span&gt;</span></span><span style="color:#0000ff;"><strong>&lt;/a&gt;</strong></span>&lt;/b&gt;<br /> &lt;?php else: ?&gt;<br />     &lt;b&gt;&lt;a href="&lt;?php echo $categoryRecord['url'] ?&gt;"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;&lt;/b&gt;<br />   &lt;?php endif ?&gt;<br />   &lt;?php echo $categoryRecord['_listItemEnd'] ?&gt;<br /> &lt;?php endforeach; ?&gt;<br /> &lt;/ul&gt;</code></p>

<p>This has taken me six days to figure out costing me a delay I could not afford.</p>
<p>Me thinks that had I gotten expert help from the authors of CMSB, this would have been solved a long time ago. Perhaps there is a new support policy that I have not read?</p>
<p>Terry</p>
]]></description>
          <pubDate>Sun, 17 Sep 2017 00:36:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241166#post2241166</guid>
        </item>
                <item>
          <title>Category menu - adding class name for main items</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241154#post2241154</link>
          <description><![CDATA[<p>Hi Zicky,</p>

<p>I appreciate your assistance. I will experiment with this and let you know.</p>
<p>Regards</p>
<p>Terry</p>]]></description>
          <pubDate>Wed, 13 Sep 2017 11:58:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241154#post2241154</guid>
        </item>
                <item>
          <title>Category menu - adding class name for main items</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241139#post2241139</link>
          <description><![CDATA[<p>Hi Zicky,</p>

<p>Thanks for your response. I will check this out - though I am using JQuery on the page to do similar things.</p>
<p>I always have problems with the Category Menu classes and there seems to be no instructions on them. I may switch to a multi menu editor and accomplish it that way.</p>
<p>Thanks again for your response.</p>
<p>Terry</p>]]></description>
          <pubDate>Mon, 11 Sep 2017 21:27:25 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241139#post2241139</guid>
        </item>
                <item>
          <title>Category menu - adding class name for main items</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241136#post2241136</link>
          <description><![CDATA[<p>Hi,</p>
<p>I need to add the following classes highligted in red to a CMSB generated category menu when the level 1 item has a child and span tags when the item irrespective of level has a children/children. How do I accomplish this?</p>
<p><code>                <span style="color:#000000;">&lt;ul class="nav sf-menu clearfix"&gt;</span><br />                     &lt;li <span style="color:#ff0000;">class="active sub-menu"</span>&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;<span style="color:#ff0000;">&lt;span&gt;&lt;/span&gt;</span><br /><span style="color:#000000;">                        &lt;ul class="submenu"&gt;</span><br /><span style="color:#000000;">                             &lt;li&gt;&lt;a href="#"&gt;Lorem ipsum dolor sit&lt;<span style="color:#ff0000;">span&gt;&lt;/span&gt;</span>&lt;/a&gt;</span><br /><span style="color:#000000;">                               &lt;ul class="submenu"&gt;</span><br />                                     &lt;li&gt;&lt;a href="#"&gt;Lorem ipsum dolor sit&lt;/a&gt;&lt;/li&gt;<br />                                     &lt;li&gt;&lt;a href="#"&gt;Conse ctetur adipisicing&lt;/a&gt;&lt;/li&gt;<br />                                     &lt;li&gt;&lt;a href="#"&gt;Elit sed do eiusmod tempor&lt;/a&gt;&lt;/li&gt;<br />                                     &lt;li&gt;&lt;a href="#"&gt;Incididunt ut labore&lt;/a&gt;&lt;/li&gt;<br />                                     &lt;li&gt;&lt;a href="#"&gt;Et dolore magna aliqua&lt;/a&gt;&lt;/li&gt;<br />                               &lt;/ul&gt;  <br />                             &lt;/li&gt;<br />                             &lt;li&gt;&lt;a href="#"&gt;Conse ctetur adipisicing&lt;/a&gt;&lt;/li&gt;<br />                             &lt;li&gt;&lt;a href="#"&gt;Elit sed do eiusmod tempor&lt;/a&gt;&lt;/li&gt;<br />                             &lt;li&gt;&lt;a href="#"&gt;Incididunt ut labore&lt;/a&gt;&lt;/li&gt;<br />                             &lt;li&gt;&lt;a href="#"&gt;Et dolore magna aliqua&lt;/a&gt;&lt;/li&gt;<br />                         &lt;/ul&gt;<br />                     &lt;/li&gt;<br />                     &lt;li&gt;&lt;a href="index-1.html"&gt;About&lt;/a&gt;&lt;/li&gt;<br />                     &lt;li&gt;&lt;a href="index-2.html"&gt;Blog&lt;/a&gt;&lt;/li&gt;<br />                     &lt;li&gt;&lt;a href="index-3.html"&gt;Gallery&lt;/a&gt;&lt;/li&gt;<br />                     &lt;li&gt;&lt;a href="index-4.html"&gt;Contacts&lt;/a&gt;&lt;/li&gt;<br />                 &lt;/ul&gt;<br /></code></p>
<p><code>  // load records from 'navigation_menu'<br />   list($navigation_menuRecords, $selectedNavigation_menu) = getCategories(array(<br />     'tableName'            =&gt; 'navigation_menu', //<br />     'categoryFormat'       =&gt; 'showall',  // showall, onelevel, twolevel, breadcrumb<br />     'defaultCategory'      =&gt; 'first',    // Enter 'first', a category number, or leave blank '' for none<br />     <br />     // advanced options (you can safely ignore these)<br />     'rootCategoryNum'      =&gt; '',      // Only categories _below_ this one will be shown (defaults to blank or 0 for all)<br />     'ulAttributes'         =&gt; 'class="submenu"',      // add html attributes to &lt;ul&gt; tags, eg: 'class="menuUL"' would output &lt;ul class="menuUL"&gt;<br />     'selectedCategoryNum'  =&gt; '',      // this record number is returned as the "selected category", defaults to getLastNumberInUrl()<br />     'ulAttributesCallback' =&gt; '',      // ADVANCED: custom function to return ul attributes, eg: 'myUlAttr' and function myUlAttr($category) { return "id='ul_uniqueId_{$category['num']}'"; }<br />     'liAttributesCallback' =&gt; '',      // ADVANCED: custom function to return li attributes, eg: 'myLiAttr' and function myLiAttr($category) { return "id='li_uniqueId_{$category['num']}'"; }<br />     'loadCreatedBy'        =&gt; false,   // loads createdBy.* fields for user who created category record (false is faster)<br />     'loadUploads'          =&gt; true,    // loads upload fields, eg: $category['photos'] gets defined with array of uploads (false is faster)<br />     'ignoreHidden'         =&gt; false,   // false = hide records with 'hidden' flag set, true = ignore status of hidden flag when loading records<br />     'debugSql'             =&gt; false,   // display the MySQL query being used to load records (for debugging)<br />   ));</code></p>
<p>Thanks</p>
<p>Terry</p>]]></description>
          <pubDate>Sun, 10 Sep 2017 15:24:03 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241136#post2241136</guid>
        </item>
                <item>
          <title>Ambiguous behaviour of navigation list in viewer</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240459#post2240459</link>
          <description><![CDATA[<p>Hi Deborah,</p>
<p>Thanks for taking the time to respond.</p>
<p>If you were to remove the PHP code, the HTML code that remains is correct:</p>
<p><code>&lt;a href=""&gt;&lt;/a&gt;</code></p>
<p>Having not found a solution in the last week since posting this, I've altered the design on the page template and removed this horizontal menu.</p>
<p>Regards</p>
<p>Terry</p>]]></description>
          <pubDate>Fri, 28 Apr 2017 12:56:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240459#post2240459</guid>
        </item>
                <item>
          <title>Ambiguous behaviour of navigation list in viewer</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240447#post2240447</link>
          <description><![CDATA[<p>Hi,</p>
<p>I am running a horizontal navigation menu at the top of my page and then another in the footer. The top navigation menu is using "showall" as the categoryFormat while the footer menu is using "onelevel". I am using the same table (navigation_menu) for both menus.</p>
<p>In the viewer URL of one section, the footer menu is behaving schizophrenically. For records 1, 4, 5, 6 it does a "showall" in the footer but for the other records it does a "onelevel" display. The code I am using for the footer navigation menu is below. Can you tell me why it sometimes displays all records and sometimes only one level?</p>

<p><code>&lt;?php<br />  // load records from 'navigation_menu'<br />  list($navigation_menuRecords, $selectedNavigation_menu) = getCategories(array(<br />    'tableName'            =&gt; 'navigation_menu',<br />    'categoryFormat'       =&gt; 'onelevel', <br />    'defaultCategory'      =&gt; '',<br />    <br />    // advanced options (you can safely ignore these)<br />    'rootCategoryNum'      =&gt; '',     <br />    'ulAttributes'         =&gt; '',     <br />    'selectedCategoryNum'  =&gt; '',     <br />    'ulAttributesCallback' =&gt; '',     <br />    'liAttributesCallback' =&gt; '',     <br />    'loadCreatedBy'        =&gt; false,  <br />    'loadUploads'          =&gt; true,   <br />    'ignoreHidden'         =&gt; false,  <br />    'debugSql'             =&gt; false,  <br />  ));<br />?&gt;<br /><br />&lt;?php foreach ($navigation_menuRecords as $categoryRecord): ?&gt;<br />    &lt;?php if ($categoryRecord['target']) {<br />        $target = 'target="';<br />        $target .= $categoryRecord['target'];<br />        $target .= '"';<br />    } else {$target="";}<br />    ?&gt;<br />  &lt;?php echo $categoryRecord['_listItemStart'] ?&gt;<br />    &lt;a href="&lt;?php echo $categoryRecord['page_url'] ?&gt;" &lt;?php echo $target;?&gt;&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;<br />  &lt;?php echo $categoryRecord['_listItemEnd'] ?&gt;<br />&lt;?php endforeach; ?&gt;</code></p>

<p>Thanks</p>
<p>Terry</p>]]></description>
          <pubDate>Fri, 21 Apr 2017 16:26:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240447#post2240447</guid>
        </item>
                <item>
          <title>Sigh! I broke the CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240391#post2240391</link>
          <description><![CDATA[<p>Thank you Tim.</p>
<p>Scrutinising my code again I see that was 'missing' from the on which worked.</p>
<p>Regards</p>
<p>Terry</p>]]></description>
          <pubDate>Sat, 08 Apr 2017 09:48:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240391#post2240391</guid>
        </item>
                <item>
          <title>Sigh! I broke the CMS</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240385#post2240385</link>
          <description><![CDATA[<p>I created two field in the Section Editor initially as Text Boxes and then I changed them to WYSYWYGS.</p>
<p>Now my HTML tags are showing up on the web page. I deleted those sections created new WYSYWYGS and re-entered the data and there is no change.</p>
<p>See attached the screenshot.</p>
<p>How do I mend this broken WYSYWYG?</p>

<p>Thanks</p>
<p>Terry</p>]]></description>
          <pubDate>Fri, 07 Apr 2017 09:00:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240385#post2240385</guid>
        </item>
                <item>
          <title>Grouping</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240170#post2240170</link>
          <description><![CDATA[<p>Hi Ross,</p>
<p>Thanks for your response. I see that while the WHERE clause is no longer part of the code generator it can still be added back as per the older version. Good news!</p>
<p>Looking at it some more, I thought that using the WHERE clause was not the most efficient method because in the event that I added another course then I could need that hardcode that into the template and FTP it to the server, so I used an associative array to group the courses instead and that works much better and is a one-stop shop. For reference, in the event that anyone else is looking for a similar solution, here is what I did:</p>
<p>First create the associative array:</p>
<p><code>          $ValMeals = array(); <br /><br />          foreach ($valentines_dayRecords as $meal) { <br />            $ValCourse = $meal['course']; <br /><br />            if (!array_key_exists($ValCourse, $ValMeals)) { <br />             $ValMeals[$ValCourse] = array(); <br />            } <br /><br />            $ValMeals[$ValCourse][] = $meal; <br />          } <br /></code></p>

<p>Then loop through it:</p>
<p><code>    &lt;?php foreach ($ValMeals as $courses =&gt; $meals): ?&gt;<br />    &lt;h4&gt;&lt;?php echo $courses; ?&gt;&lt;/h4&gt;<br />    &lt;?php foreach ($meals as $meal): ?&gt; <br />      &lt;div class="name-wrap"&gt;<br />          &lt;div class="box"&gt;<br />              &lt;h6 class="box_aside"&gt;&lt;?php echo htmlencode($meal['name_of_dish']) ?&gt;&lt;/h6&gt;<br />              &lt;span class="box_right"&gt;&lt;/span&gt;<br />          &lt;/div&gt;<br />          &lt;p class="brd"&gt;&lt;?php echo htmlencode($meal['description']) ?&gt;&lt;/p&gt;<br />      &lt;/div&gt;<br />        &lt;?php endforeach ?&gt; <br />        &lt;br&gt;&lt;br&gt;<br />      &lt;?php endforeach ?&gt;</code></p>

<p>The output was the following with one set of code rather than having to repeat the code for each course, if I were using the WHERE clause.</p>
<p>    <span style="text-decoration:underline;"><strong>STARTERS</strong></span><br />    Soup of the Day (v)<br />    Smoked Salmon and Prawn Cocktail<br />    Ham Hock Terrine, Apple Relish and Toast<br />    Baked Camembert</p>
<p>    <span style="text-decoration:underline;"><strong>MAIN</strong></span><br />    7oz Ribeye Steak<br />    Baked Chicken Breast<br />    Roast Monkfish<br />    Gnocchi<br /><br />    <span style="text-decoration:underline;"><strong>DESSERT</strong></span><br />    Chocolate Pot and Dipping Fruit<br />    Sticky Toffee Pudding with Vanilla Ice-cream<br />    Passion Fruit Pannacotta<br />    Cheeseboard<br /><br /></p>
<p>Best regards</p>
<p>Terry</p>]]></description>
          <pubDate>Fri, 03 Feb 2017 20:44:17 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240170#post2240170</guid>
        </item>
                <item>
          <title>Grouping</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240168#post2240168</link>
          <description><![CDATA[<p>Hi,</p>
<p>I can't find a way in the code generator for a WHERE statement ... so, can you tell me how I might group stuff? I am running a food menu categorised as Starters, Mains, Desserts. I want to achieve the following grouping for all three courses which previously I would have used a WHERE statement:</p>
<p><strong>COURSE (e.g. Starts, Mains or Desserts)</strong></p>
<p>Item</p>
<p>Item</p>
<p>Item</p>
<p>The cumbersome way I am doing it, is to hard code the Course name first and then use:</p>
<p><code>&lt;h4&gt;Starters&lt;/h4&gt;<br />&lt;?php if ($record['course']=="Starters"): ?&gt;<br />    &lt;div class="name-wrap"&gt;<br />        &lt;div class="box"&gt;<br />            &lt;h6 class="box_aside"&gt;&lt;?php echo htmlencode($record['name_of_dish']) ?&gt;&lt;/h6&gt;<br />            &lt;span class="box_right"&gt;&lt;/span&gt;<br />        &lt;/div&gt;<br />        &lt;p class="brd"&gt;&lt;?php if($record['description']):?&gt;&lt;?php echo htmlencode($record['description']) ?&gt;&lt;?php endif; ?&gt;&lt;/p&gt;<br />    &lt;/div&gt;<br />&lt;?php endif; ?&gt;<br /></code></p>
<p>Thanks</p>
<p>Terry</p>]]></description>
          <pubDate>Thu, 02 Feb 2017 14:52:12 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240168#post2240168</guid>
        </item>
                <item>
          <title>Controlling navigation menu items display</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240033#post2240033</link>
          <description><![CDATA[<p>Greg,</p>

<p>That's a brilliant piece of programming in CMSB. Makes life so much easier.</p>
<p>This solution works well.</p>
<p>Thanks</p>
<p>Terry</p>

]]></description>
          <pubDate>Sat, 14 Jan 2017 04:31:05 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240033#post2240033</guid>
        </item>
              </channel>
    </rss>
  