How to get Repeater tags to update table of contents

Hi

I'm new to Mailbuild and am having problems getting my repeater tags to update the table of contents.

Within my layout (http://www.virtuallee.co.uk/ClientArea/BS/BrainsexMatters_newsletter.jpg) you'll see that there are 5 links at right within the table of contents. Three of the links lead to 3 articles within the main body area (Learn, Research News, Good reads) and the other 2 links lead to 2 articles within the side column (About, Contact). I can't seem to get this to work and have tried many other combinations. In the examples give by Campaign Monitor they don't show the code for a second repeater. Can anyone help me with this? I'm sure is pretty basic. Thanks! Lee

I have the following code for my table of contents:

                             

<tableofcontents>
                                <li><$repeatertitle$></li>
                                <li><$repeatertitle$></li>
                                <li><$repeatertitle$></li>
                                <li><$repeatertitle$></li>
                                <li><$repeatertitle$></li>
                              </tableofcontents>

The code for the 3 articles that update the top three links in the table of contents is:

                       

<repeater toc='true'>
                              <h2><$title link='true' default='Enter your title'$></h2>
                              <$description default='<p>Enter your description</p>'$>
                              <p class="top"><a href="#top">back to top</a> <img src="top-arrow.gif" alt="Back to top" width="8" height="8" /></p>
                           </repeater>

                           <repeater toc='true'>
                              <h2><$title link='true' default='Enter your title'$></h2>
                              <$description default='<p>Enter your description</p>'$>
                       <img src="<$imagesrc link='false'$>" width="320" height="151" align="right" hspace="10">
                              <$description default='<p>Enter your description</p>'$>
                              <p class="top"><a href="#top">back to top</a> <img src="top-arrow.gif" alt="Back to top" width="8" height="8" /></p>
                           </repeater>

                           <repeater toc='true'>
                              <h2><$title link='true' default='Enter your title'$></h2>
                              <$description default='<p>Enter your description</p>'$>
                              <p class="top"><a href="#top">back to top</a> <img src="top-arrow.gif" alt="Back to top" width="8" height="8" /></p>
                           </repeater>

The code for the 2 articles within the side column that also update the table of contents is:

                           <h3><$title link='true' default='Enter your title'$></h3>
                           
                           <repeater>
                              <$description default='<p>Enter your description</p>'$>
                           </repeater>
                           
                           <img src="hr-small.gif" alt="Small hr" width="192" height="28" />
Mathew Mathew, 7 years ago

Hi,

With Campaign Monitor, only one of your repeaters can actually have a table of contents. I'm afraid it is not possible to have two different repeaters both feed entries into the TOC.

You can set which repeater populates the table of contents by setting the toc='true' value in your repeater tag.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098