<?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%3AChristine</link>
        <description></description>
        <pubDate>Tue, 12 May 2026 15:59:42 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3AChristine&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Displaying value &amp; label for related table list items on Category Menu page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2248230#post2248230</link>
          <description><![CDATA[<p>Hi Deborah,<br /><br />It looks like in your code, you're only iterating over the ":labels" of the related businesses, and that the $value variable you're using isn't being defined anywhere.</p>
<p>CMSBuilder actually creates two parallel arrays for list fields:<br />$record['business_directory_num:values'] for the "num" values.<br />$record['business_directory_num:labels'] for the "business_name" values.<br /><br />To get both, you can iterate over each of the ":values" instead, and then use their $index to grab the corresponding label and display it too:</p>
<pre class="language-php"><code>&lt;?php foreach ($record['business_directory_num:values'] as $index =&gt; $value): ?&gt;
	&lt;?php $label = $record['business_directory_num:labels'][$index]; ?&gt;
	&lt;li&gt;&lt;a href="/business/directory/index.php#biz-&lt;?php echo $value; ?&gt;"&gt;&lt;?php echo $label; ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endforeach; ?&gt;</code></pre>
<p><br />So that'll loop through each of the "num" values, then grab the associated "business_name" from the labels array using the $index, and display them both together.</p>
]]></description>
          <pubDate>Tue, 16 Dec 2025 10:13:41 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2248230#post2248230</guid>
        </item>
              </channel>
    </rss>
  