<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Modify bootstrap dropdown menu so child items appear as list page</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Modify-bootstrap-dropdown-menu-so-child-items-appear-as-list-page-80350</link>
        <description></description>
        <pubDate>Wed, 18 Nov 2026 20:30:01 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Modify-bootstrap-dropdown-menu-so-child-items-appear-as-list-page-80350" rel="self" type="application/rss+xml" />

                <item>
          <title>Modify bootstrap dropdown menu so child items appear as list page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2237984#post2237984</link>
          <description><![CDATA[<p>You need to remove the "if child"</p>
<blockquote>
<p>&lt;ul class="nav navbar-nav"&gt;<br /><br /> &lt;?php if (!$categoryRecord['hide_from_navigation']): ?&gt; <br /> &lt;?php echo $categoryRecord['_listItemStart'] ?&gt; <br /><br /> &lt;a href="<br /> &lt;?php if ($categoryRecord['redirect']): ?&gt;&lt;?php echo PREFIX_URL ?&gt;&lt;?php echo $categoryRecord['redirect'] ?&gt;<br /> &lt;?php else: ?&gt;&lt;?php echo $categoryRecord['_link'] ?&gt;<br /> &lt;?php endif ?&gt; <br /> "<br /> &gt;&lt;?php echo $categoryRecord['name'] ?&gt;<br /> &lt;/a&gt;<br /><br /> &lt;?php echo $categoryRecord['_listItemEnd'] ?&gt;<br /><br /> &lt;?php endforeach; ?&gt;<br /> &lt;/ul&gt;</p>
</blockquote>
<p>and in the viewer code, need to add the 'onelevel'</p>
<blockquote>
<p>// load pages<br /> list($categories, $selectedCategory) = getCategories(array(<br /> 'tableName' =&gt; 'pages',<br /> 'categoryFormat' =&gt; 'onelevel', //TO REMOVE DROP DOWN NAVIGATION<br /> 'ulAttributesCallback' =&gt; 'customMenuUlAttr', // ADVANCED: custom function to return ul attributes, eg: myUlAttr($category);<br /> 'liAttributesCallback' =&gt; 'customMenuLiAttr', // ADVANCED: custom function to return li attributes, eg: myLiAttr($category);<br /> ));</p>
</blockquote>
<p>Hope that helps</p>
]]></description>
          <pubDate>Tue, 12 Jan 2016 13:05:33 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2237984#post2237984</guid>
        </item>
                <item>
          <title>Modify bootstrap dropdown menu so child items appear as list page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2237981#post2237981</link>
          <description><![CDATA[<p>Hi</p>
<p>I am using the standard bootstrap nav css to display a category menu structure created in cmsb.</p>
<p><code>&lt;span class="navbar-brand"&gt;&lt;?php echo htmlspecialchars($website_config['website_name']) ?&gt;<br />&lt;/div&gt; <br />&lt;div class="navbar-collapse collapse"&gt;<br />&lt;ul class="nav navbar-nav"&gt;<br />&lt;?php foreach($categories as $category): ?&gt;<br />&lt;?php echo $category['_listItemStart']; ?&gt;      <br />&lt;a href="&lt;?php echo $category['_link']; ?&gt; "  &lt;?php if($category['_hasChild'] &amp;&amp; $category['depth'] == '0'): ?&gt;class="dropdown-toggle" data-toggle="dropdown"&lt;?php endif; ?&gt;  &gt;<br />&lt;?php echo $category['name']; ?&gt; &lt;?php if($category['_hasChild'] &amp;&amp; $category['depth'] == '0'): ?&gt;&lt;span class="caret"&gt;&lt;/span&gt;&lt;?php endif; ?&gt;&lt;/a&gt;<br />&lt;?php echo $category['_listItemEnd']; ?&gt;<br />&lt;?php endforeach; ?&gt;</code></p>
<p>This standard code shows parent items with child items as a drop down.</p>
<p>Please could some one assist me to rewrite the above so that the nav menu shows the parent only, with the parent linking to a separate list page containing the child links.</p>
<p>I understand how list and detail pages work, but I am confused by category menus! </p>]]></description>
          <pubDate>Tue, 12 Jan 2016 03:39:58 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2237981#post2237981</guid>
        </item>
              </channel>
    </rss>
  