Multiple Table of Contents?

Is it possible to have multiple table of contents in a template, where I specify which repeating region to pull the TOC from?

Pseudo-code of output:

[ICON]  Section 1 Title 1
        Section 1 Title 2
        Section 1 Title 3

[ICON]  Section 2 Title 1
        Section 2 Title 2
        Section 2 Title 3

[ICON]  Section 3 Title 1
        Section 3 Title 2
        Section 3 Title 3

SECTION 1 REPEATING REGIONS
    Section 1 Title 1
    [article]

    Section 1 Title 2
    [article]

    Section 1 Title 3
    [article]

SECTION 2 REPEATING REGIONS
    Section 2 Title 1
    [article]

    Section 2 Title 2
    [article]

    Section 2 Title 3
    [article]

SECTION 3 REPEATING REGIONS
    Section 3 Title 1
    [article]

    Section 3 Title 2
    [article]

    Section 3 Title 3
    [article]

I thought you could specify in the TOC tag which repeating region to grab the titles from, but it's not in the documentation.

Thanks!

roshodgekiss roshodgekiss, 3 years ago

Hi there dmh-kevin, it isn't possible to include multiple TOCs in a template at present, I'm sorry to say. I guess that disrupts your plans here a bit. Happy to add a vote for this internally though and will keep you posted if it's something we include in a future update.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
dmh-kevin, 3 years ago

Thanks for getting back to me.  do you know of any workarounds, such as the ability to programatically loop through a repeating region from another location in template, or taking advantage of rss feeds?

roshodgekiss roshodgekiss, 3 years ago

Honestly, I'm stumped for a workaround here at present - repeaters and RSS feeds aren't as yet flexible enough to get around limitations with our TOC, I'm sorry to say. I'll let you know if we have any further suggestions here.


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

Hi dmh-kevin

Did you find a proper workaround for this?
I have a similar issue to solve.

My structure for the TOC would be this:
News
- title
- title
- title

Refrences
- title
- title

Varia
- title
- title

All of these titles should link to their correct item in the mailing.
Eager to learn how you fixed it.

Jens

roshodgekiss roshodgekiss, 3 years ago

Hi Jens, there isn't a technical workaround for this at present. That said, we'll add your vote and keep you posted if we make it possible to add multiple TOCs to an email campaign.


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

Hi all,

I would also like to add a vote for multiple TOCs, please!  Or more specifically, multiple repeaters.

My issue is slightly different however in that I need to use 2 repeater tags, but 1 of them doesn't need a TOC.

I have a newsletter in which I create x number of articles, for which I use a repeater tag and a TOC.

Underneath this I need to be able to create x number of News articles. These do not need a TOC as I will hard code a link to the News under the main TOC.

Is this actually the same problem as detailed by dmh-kevin and Jens?

Thanks in advance.

Tom

roshodgekiss roshodgekiss, 3 years ago

Hi there Tom, this is indeed a slightly different request! If I understand this requirement correctly, I may have a workaround for you, using only one <repeater tag>.

Let's say there's a whole bunch of articles - some need their headlines to feature in a TOC, some don't. All you need to do is create two layouts like so:

<repeater>

   <layout label="Article for TOC">
      <h2>
         <singleline label="Title" repeatertitle='true'>Title</singleline>
      </h2>
      <multiline label="Article Body">Enter the full text</multiline>
   </layout>

   <layout label="Article NOT for TOC">
      <h2>
         <singleline label="Title">Title</singleline>
      </h2>
      <multiline label="Article Body">Enter the full text</multiline>
   </layout>

</repeater>

Does this make sense? Using this, you can create a "section" of articles that have their headings added to the TOC, followed by articles that aren't included in the TOC. Let us know if you have any questions about this :)


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

I think an elegant solution would be as follows... but it would need to be implemented by CM to make it happen.

For the content:

<repeater>
   <layout label="Article for Events">
      <h2><singleline label="Title" repeatertitle="events">Title</singleline></h2>
      <multiline label="Body">Details go here</multiline>
   </layout>
   <layout label="Article for News">
      <h2><singleline label="Title" repeatertitle="news">Title</singleline></h2>
      <multiline label="Body">Details go here</multiline>
   </layout>
</repeater>

For the TOC:

<h1>Summary</h1>

<h2>Events</h2>
<ul>
    <tableofcontents name="events">
        <li><repeatertitle/></li>
    </tableofcontents>
</ul>

<h2>News</h2>
<ul>
    <tableofcontents name="news">
        <li><repeatertitle/></li>
    </tableofcontents>
</ul>

A workaround would be to insert HTML in your titles with CSS classes. It would not work all the time but you could go

<h2><span class="news">Title</news></h2>

. In your CSS for the template you would need to either hide all classes except news for a particular TOC.

.news-toc .other-header { display:none;}


This would not work in all email clients, but it's worth a try. I haven't tried this...

NickoLabs NickoLabs, 2 years ago

Any new development on this?


Nickolas Simard
Multimedia integrator: Strategy & Web development
WebsiteTwitterFacebookLinkedIn

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