<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Accordian Container on a Multi Record Page</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Accordian-Container-on-a-Multi-Record-Page-71331</link>
        <description></description>
        <pubDate>Mon, 20 Apr 2026 05:21:48 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Accordian-Container-on-a-Multi-Record-Page-71331" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [MercerDesign] Accordian Container on a Multi Record Page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2204651#post2204651</link>
          <description><![CDATA[Hi,<br /><br />What you'll need to do is make it so you can add your &lt;div&gt; tags dynamically.<br />What I would suggest is setting up your content in CMS Builder to be a set of nested &lt;ul&gt; lists.  Something like this:<br /><br /><code> &lt;ul&gt;<br />     &lt;li&gt;TITLE&lt;/li&gt;<br />          &lt;ul&gt;<br />               &lt;li&gt;Content&lt;/li&gt;<br />           &lt;/ul&gt;<br />     &lt;li&gt;TITLE&lt;/li&gt;<br />          &lt;ul&gt;<br />               &lt;li&gt;Content&lt;/li&gt;<br />           &lt;/ul&gt;<br />     &lt;li&gt;TITLE&lt;/li&gt;<br />          &lt;ul&gt;<br />               &lt;li&gt;Content&lt;/li&gt;<br />           &lt;/ul&gt;<br />&lt;/ul&gt;</code><br /><br />We can then use code to parse this list into an array like this:<br /><code>$how_we_do_businessRecord['content']=str_replace(&quot;&lt;ul&gt;&quot;,&quot;&quot;,$how_we_do_businessRecord['content']);<br />$how_we_do_businessRecord['content']=str_replace(&quot;&lt;/ul&gt;&quot;,&quot;&quot;,$how_we_do_businessRecord['content']);<br />$items=explode(&quot;&lt;li&gt;&quot;,$how_we_do_businessRecord['content']);</code><br /><br />Finally, we can use code to output this array and add in the appropriate &lt;div&gt; tags:<br /><br /><code>&lt;?php $content=0; ?&gt;<br />&lt;?php foreach ($items as $key=&gt;$value): ?&gt;<br />    &lt;?php $value=str_replace(&quot;&lt;/li&gt;&quot;,&quot;&quot;,$value); ?&gt;<br />    &lt;?php $value=trim($value);?&gt;<br />   &lt;?php if($value): ?&gt;<br />       &lt;?php if($content): //output content ?&gt;<br />          &lt;?php $id=&quot;Accordion&quot;.($key-1).&quot;Content&quot;;?&gt;<br />          &lt;?php $content=0;?&gt;<br />          &lt;div class=&quot;AccordionContent1&quot; id=&quot;&lt;?php echo $id;?&gt;&quot;&gt;&lt;?php echo $value; ?&gt;&lt;/div&gt;<br />       &lt;?php else: //output title ?&gt;<br />          &lt;?php $content=1; ?&gt;<br />         &lt;ul&gt;&lt;li&gt; &lt;div onselectstat=&quot;return false;&quot; onclick=&quot;runAccordion(&lt;?php echo $key; ?&gt;), ContentHeight=;&quot; class=&quot;AccordionTitle&quot;&gt;&lt;?php echo $value; ?&gt;&lt;/div&gt;&lt;/ul&gt;&lt;/li&gt;<br />       &lt;?php endif ?&gt;<br />   &lt;?php endif ?&gt;<br />&lt;?php endforeach ?&gt;</code><br /><br />The only thing missing from this code is a value for &quot;ContentHeight&quot;.  There isn't an easy may to make this dynamic, so perhaps there is a default value you can write in there.<br />Give this a try and let me know if you run into any problems.<br />]]></description>
          <pubDate>Thu, 03 Jun 2010 11:04:55 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2204651#post2204651</guid>
        </item>
                <item>
          <title>Re: [Jason] Accordian Container on a Multi Record Page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2204649#post2204649</link>
          <description><![CDATA[This page is doing what I need it to do but only by me putting all the code for the Accordian in the html content area in CMS builder.<br /><br />http://www.horatioinvestments.com/how_horatio_investments_do_business.php<br /><br />I want it so the code is not in there for the client to mess up but on the actual template page.<br />]]></description>
          <pubDate>Thu, 03 Jun 2010 09:52:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2204649#post2204649</guid>
        </item>
                <item>
          <title>Re: [MercerDesign] Accordian Container on a Multi Record Page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2204598#post2204598</link>
          <description><![CDATA[Hi,<br /><br />If you could attach the actual .php file and let me know exactly what you want this page to do that it isn't currently, I can take a closer look for you.<br /><br />Thanks.<br />]]></description>
          <pubDate>Tue, 01 Jun 2010 09:55:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2204598#post2204598</guid>
        </item>
                <item>
          <title>Re: [Jason] Accordian Container on a Multi Record Page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2204595#post2204595</link>
          <description><![CDATA[Sorry I took the page down and just put all the code from the html page in the content area of the new php page. this is the link: http://www.horatioinvestments.com/how_horatio_investments_do_business.php<br /><br />It would be good however to be able to do it so the code is not in the content area for my client to mess up.<br />]]></description>
          <pubDate>Tue, 01 Jun 2010 03:19:32 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2204595#post2204595</guid>
        </item>
                <item>
          <title>Re: [MercerDesign] Accordian Container on a Multi Record Page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2204568#post2204568</link>
          <description><![CDATA[Hi,<br /><br />I've tried to take a look at the link you posted, but get a 404 error.  If you could attach the file you're working with, along with the exact nature of the problem you're facing, I can take a look at it for you.<br /><br />Hope this helps.<br />]]></description>
          <pubDate>Mon, 31 May 2010 10:46:55 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2204568#post2204568</guid>
        </item>
                <item>
          <title>Re: [gkornbluth] Accordian Container on a Multi Record Page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2204556#post2204556</link>
          <description><![CDATA[This should be fairly straight-forward. Mosty accordion gizmos are run by Jquery. If so it's simply a case of applying the relevant css classes to the containers around each block of info. <br /><br />Perch<br />]]></description>
          <pubDate>Sun, 30 May 2010 08:58:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2204556#post2204556</guid>
        </item>
                <item>
          <title>Re: [MercerDesign] Accordian Container on a Multi Record Page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2204551#post2204551</link>
          <description><![CDATA[Hi MercerDesign,<br /><br />I'm not sure what you mean by multiple records. Where should the other records be showing up?<br /><br />Could you describe what you're trying to accomplish in more detail?<br /><br />I'm assuming that the html site is the existing one and that there's a php version in the works.<br /><br /><br />If you could attach your php code (no personal information) that would help.<br /><br />Thanks,<br /><br />Jerry Kornbluth<br />]]></description>
          <pubDate>Fri, 28 May 2010 06:57:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2204551#post2204551</guid>
        </item>
                <item>
          <title>Accordian Container on a Multi Record Page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2204550#post2204550</link>
          <description><![CDATA[Can anyone help me with this, I have a html page which we are happy with but need to put it into CMS builder, I have it working on one record but when you add more it just shows one record, I have set it up as a multi record page, this is what I am trying to replicate: http://www.horatioinvestments.com/how_horatio_investments_do_business.html<br /><br />If you click on Profession etc you will see what I mean.<br />]]></description>
          <pubDate>Fri, 28 May 2010 05:48:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2204550#post2204550</guid>
        </item>
              </channel>
    </rss>
  