<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Conflict with &amp;apos;allowSearch&amp;apos; =&amp;gt; false,</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Conflict-with-allowSearch-false-80912</link>
        <description></description>
        <pubDate>Tue, 13 Oct 2026 06:01:15 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Conflict-with-allowSearch-false-80912" rel="self" type="application/rss+xml" />

                <item>
          <title>Conflict with &apos;allowSearch&apos; =&gt; false,</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240431#post2240431</link>
          <description><![CDATA[<p>That works - thanks Greg!</p>
]]></description>
          <pubDate>Mon, 17 Apr 2017 18:06:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240431#post2240431</guid>
        </item>
                <item>
          <title>Conflict with &apos;allowSearch&apos; =&gt; false,</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240429#post2240429</link>
          <description><![CDATA[<p>Hey Tim,</p>
<p>My guess is that you're using the permalinks plugin on this page? If so, the issue is most likely to be that the permalinks plugin artificially sets the page num value in $_REQUEST['num']. Then when you set allowSearch to true, the page is only trying to load records that have the num value of the permalink. </p>
<p>The simplest way around this is to add the following to your code:</p>
<p><code>//If the permalinks plugin has set the num value in the request, unset it.<br />if(isset($_REQUEST['num'])) { unset($_REQUEST['num']); }<br /><br />//Load the panel data<br />list($panelsRecords, $panelsMetaData) = getRecords(array(<br />  'tableName'   =&gt; 'panels',<br />  'where'       =&gt; 'pagesNum =' .$selectedCategory['num'],<br />  'loadUploads' =&gt; true,<br />  'allowSearch' =&gt; false,<br />  'leftJoin'    =&gt; array('includes' =&gt; 'include'),<br />));</code></p>
<p>This will detect if the num has been set by the permalinks, and unset it before the getRecords function runs.</p>
<p>Cheers,</p>
<p>Greg</p>]]></description>
          <pubDate>Mon, 17 Apr 2017 09:47:29 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240429#post2240429</guid>
        </item>
                <item>
          <title>Conflict with &apos;allowSearch&apos; =&gt; false,</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240417#post2240417</link>
          <description><![CDATA[<p>Hi Tim</p>
<p>Could you post a copy of the whole file so I can see your code in context?  </p>
<p>Feel free to email it to me directly if you don't want to have it online in our forums.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Fri, 14 Apr 2017 09:08:29 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240417#post2240417</guid>
        </item>
                <item>
          <title>Conflict with &apos;allowSearch&apos; =&gt; false,</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240409#post2240409</link>
          <description><![CDATA[<p>Hi Guys.</p>
<p>I've got a page that is listing "panels"</p>
<blockquote>
<p><br /> list($panelsRecords, $panelsMetaData) = getRecords(array(<br /> 'tableName' =&gt; 'panels',<br /> 'where' =&gt; 'pagesNum='.$selectedCategory['num'],<br /> 'loadUploads' =&gt; true,<br /> 'allowSearch' =&gt; false,<br /> 'leftJoin' =&gt; array('includes' =&gt; 'include'),<br /> ));</p>
</blockquote>
<p>Some of those panels is displaying google map records</p>
<blockquote>
<p>// get records<br /> list($myRecords, $myMetaData) = getRecords(array(<br /> 'tableName' =&gt; $GLOBALS['GEOCODER_SAMPLE_TABLENAME'],<br /> 'allowSearch' =&gt; true,<br /> ));</p>
</blockquote>
<p>However, the maps are only showing a single result, and I'm thinking that it's due to the original 'allowSearch' =&gt; false even though I've applied true to the myRecords...</p>
<p>If I change the original to true, I get the error.</p>
<blockquote>
<p><span>MySQL Error: Column 'num' in where clause is ambiguous</span></p>
</blockquote>
<p><span>Any ideas?</span></p>]]></description>
          <pubDate>Thu, 13 Apr 2017 19:08:29 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240409#post2240409</guid>
        </item>
              </channel>
    </rss>
  