<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Multiple records from different editors on same page</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Multiple-records-from-different-editors-on-same-page-72402</link>
        <description></description>
        <pubDate>Mon, 13 Apr 2026 09:52:34 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Multiple-records-from-different-editors-on-same-page-72402" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [gkornbluth] Multiple records from different editors on same page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210461#post2210461</link>
          <description><![CDATA[Got it! Thanks Jerry.<br />]]></description>
          <pubDate>Tue, 05 Apr 2011 09:28:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210461#post2210461</guid>
        </item>
                <item>
          <title>Re: [blind2uriz] Multiple records from different editors on same page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210458#post2210458</link>
          <description><![CDATA[Hi John,<br /><br />Sounds like you'll need to access the news records editor portion of your code in a list page format and not in a detail page format. <br /><br />Go to the Code Generator and choose the news records section and click on list page as the viewer type<br /><br />You'll also see a number of optional parameters that you can apply to the generated viewer code.<br /><br />You're specifically interested in the &quot;show the first x records only&quot; radio button. Click it and change that to 3.<br /><br />You can also sort the records in the section editor so that the appropriate ones are shown on your page.<br /><br />Generate the code and copy the get records code to your viewer. Copy the code in the foreach loop for the fields you want to display to the body of your viewer.<br /><br />Hope that sets you in the right direction,<br /><br />Jerry Kornbluth<br />]]></description>
          <pubDate>Tue, 05 Apr 2011 07:51:32 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210458#post2210458</guid>
        </item>
                <item>
          <title>Re: [gkornbluth] Multiple records from different editors on same page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210457#post2210457</link>
          <description><![CDATA[Thanks Jerry, it has. I do have another problem that seems like it might be easy, w/ the same code, I'm trying to get more than one &quot;News&quot; event to show on the page, actually I want 3 to show. How would I go about this, I can't seem to find an answer. Thanks for any help<br />]]></description>
          <pubDate>Tue, 05 Apr 2011 07:22:03 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210457#post2210457</guid>
        </item>
                <item>
          <title>Re: [blind2uriz] Multiple records from different editors on same page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210456#post2210456</link>
          <description><![CDATA[Hi John,<br /><br />Glad the CMSB Cookbook <a target="_blank" href="www.thecmsbcookbook.com">www.thecmsbcookbook.com</a> was able to help you solve your problem.<br /><br />Best,<br /><br />Jerry Kornbluth<br />]]></description>
          <pubDate>Tue, 05 Apr 2011 06:58:03 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210456#post2210456</guid>
        </item>
                <item>
          <title>Re: [blind2uriz] Multiple records from different editors on same page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210396#post2210396</link>
          <description><![CDATA[Just to give an update. I fixed the problem. Here is the header...<br /><br />&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br />  <br /><br />  // load viewer library<br />  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home/content/s/t/u/stud74/html/','','../','../../','../../../');<br />  foreach ($dirsToCheck as $dir) { if (@include_once(&quot;$dir$libraryPath&quot;)) { break; }}<br />  if (!function_exists('getRecords')) { die(&quot;Couldn't load viewer library, check filepath in sourcecode.&quot;); }<br /><br />  // load records<br />  list($mainRecords, $mainMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'main',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br />    ));<br />  $mainRecord = @$mainRecords[0]; // get first record<br /><br />  // show error message if no matching record is found<br />  if (!$mainRecord) {<br />    header(&quot;HTTP/1.0 404 Not Found&quot;);<br />    print &quot;Record not found!&quot;;<br />    exit;<br />  }<br />  <br />   // load records<br />  list($newsRecords, $newsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'news', <br />  ));<br />  $newsRecord = @$newsRecords[0]; // get first record  <br /><br />?&gt;<br /><br />and here is what I put in the body....<br /><br />&lt;?php echo $mainRecord['content'] ?&gt;<br />&lt;?php echo $newsRecord['title'] ?&gt;&lt;/p&gt;<br />&lt;p&gt;&lt;?php echo date(&quot;D, M jS, Y g:i:s a&quot;, strtotime($newsRecord['date'])) ?&gt;&lt;/p&gt;<br />&lt;p&gt;&lt;a href=&quot;&lt;?php echo $newsRecord['_link'] ?&gt;&quot;&gt;Read More&lt;/a&gt;&lt;br/&gt;<br /><br />Thanks for your info and help. I'm sure I'll need more in the future.<br /><br />Jerry, I found the info out that helped me in your cookbook.<br /><br />Thanks,<br />]]></description>
          <pubDate>Fri, 01 Apr 2011 21:52:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210396#post2210396</guid>
        </item>
                <item>
          <title>Re: [robin] Multiple records from different editors on same page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210395#post2210395</link>
          <description><![CDATA[I tried both solutions but no change.<br /><br />Hey Jerry, I bought the cms cookbook yesterday, but I'm not finding any examples so far, still digging around.<br /><br />Any more thoughts? Do you need me to post anything else code wise? Thanks for all your help.<br />]]></description>
          <pubDate>Fri, 01 Apr 2011 19:42:38 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210395#post2210395</guid>
        </item>
                <item>
          <title>Re: [blind2uriz] Multiple records from different editors on same page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210385#post2210385</link>
          <description><![CDATA[Hey John,<br /><br />It looks to me like you haven't defined $newsRecord.  Try adding this line below your load news section. (A similar line is below your load main section)<br /><code>$newsRecord = @$newsRecords[0]; // get first record<br /> </code><br />Hope that helps,<br />Robin<br />]]></description>
          <pubDate>Fri, 01 Apr 2011 11:26:40 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210385#post2210385</guid>
        </item>
                <item>
          <title>Re: [blind2uriz] Multiple records from different editors on same page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210380#post2210380</link>
          <description><![CDATA[Hi John,<br /><br />A likely culprit is the line:<code>'where' =&gt; whereRecordNumberInUrl(1), </code><br />in the main get recordds call.<br /><br />Try removing that and see what you get.<br /><br />There are a lot of trouble shooting tips and specific coding examples in my CMSB Cookbook at <a target="_blank" href="http://www.thecmsbcookbook.com">http://www.thecmsbcookbook.com</a><br /><br />Hope that solves your issue.<br /><br />Jerry Kornbluth<br />]]></description>
          <pubDate>Fri, 01 Apr 2011 08:04:33 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210380#post2210380</guid>
        </item>
                <item>
          <title>Multiple records from different editors on same page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2210371#post2210371</link>
          <description><![CDATA[I've look over the forums to try and figure this out, but haven't gotten it to work yet. I have my index.php page that I want to display &quot;main content&quot; on and &quot;current news&quot; on as well. How do I go about this? I have a section editor of the main content, as well as a section editor for the news. The header code is...<br /><br />&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br />  <br /><br />  // load viewer library<br />  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home/content/s/t/u/stud74/html/','','../','../../','../../../');<br />  foreach ($dirsToCheck as $dir) { if (@include_once(&quot;$dir$libraryPath&quot;)) { break; }}<br />  if (!function_exists('getRecords')) { die(&quot;Couldn't load viewer library, check filepath in sourcecode.&quot;); }<br /><br />  // load main<br />  list($mainRecords, $mainMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'main',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br />    'limit'       =&gt; '1',<br />  ));<br />  $mainRecord = @$mainRecords[0]; // get first record<br />  <br />  // load news<br />  list($newsRecords, $newsMetaData) = getRecords(array(<br />    'tableName' =&gt; 'news', <br />    'perPage' =&gt; '1', <br />  )); <br /><br />  // show error message if no matching record is found<br />  if (!$mainRecord) {<br />    header(&quot;HTTP/1.0 404 Not Found&quot;);<br />    print &quot;Record not found!&quot;;<br />    exit;<br />  }<br /><br />?&gt;<br /><br />and what I have in the body is...<br />&lt;p&gt;&lt;?php echo $mainRecord['content'] ?&gt;&lt;/p&gt;<br /><b>(for the main content)</b><br />and...<br />&lt;p&gt;&lt;?php echo $newsRecord['title'] ?&gt;&lt;/p&gt;<br />&lt;p&gt;&lt;?php echo $newsRecord['summary'] ?&gt;&lt;/p&gt;<br />&lt;p&gt;&lt;a href=&quot;&lt;?php echo $newsRecords['_link'] ?&gt;&quot;&gt;Read More&lt;/a&gt;&lt;br/&gt;&lt;/p&gt;<br /><b>(for the news)</b><br /><br />The main content displays fine, but I'm getting this error on the news section...<br />Notice: Undefined variable: newsRecord in /home/content/s/t/u/stud74/html/jacob/index.php on line 160<br />Notice: Undefined variable: newsRecord in /home/content/s/t/u/stud74/html/jacob/index.php on line 161<br />Read More<br /><br />Here's a link to the site<br /><a target="_blank" href="http://www.interdimensionaldesigns.com/jacob/index.php">http://www.interdimensionaldesigns.com/jacob/index.php</a><br /><br />I feel like this is a simple fix, but haven't been able to figure it out. Thanks for any help.<br /><br />John<br />]]></description>
          <pubDate>Thu, 31 Mar 2011 11:49:23 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2210371#post2210371</guid>
        </item>
              </channel>
    </rss>
  