spordelia wrote:Oh, that is helpful. Were you able to get the chapter title to appear in the table of contents? The other issue I'm encountering is that if I try to add the chapter heading as an mc-heading-level 1, everything else still gets bumped down. Or do you just not have the chapter title in the TOC?
I'm sorry, I completely misread your original post. I used this to insert chapter NUMBERS in the topics, not separate HEADINGS.
So I've had another think, and here's a suggestion. You'll have to give it a go, but it
ought to work!
* In your condition tag set, create a new condition (say "Primary.Long_Guides_Only").
* In your stylesheet, create a new h1 style (say h1.Long_Guides_Only) and add the new condition to the new style using "mc-conditions" attribute.
* In your topics, add a new line with the chapter heading above your existing heading, and apply the style h1.Long_Guides_Only.
* In your targets for short guides, EXCLUDE the condition Primary.Long_Guides_Only, in your targets for long guides, INCLUDE that condition (or just don't select EXCLUDE - depends how you use conditions in your targets, but that's a different discussion)
If you do that, you should be able to use the same TOCs in your targets for both long and short guides.
BUT...
You'd need to check how x-refs to the topics that have these extra lines in would work, I'm not sure what your x-ref to a topic with two h1 lines would resolve to if you exclude the condition. Have a play though, it might work...
If sticking two h1s in the same topic doesn't work, you may have to also do as doloremipsum suggests and have your chapter heading (formatted as h1.Long_Guides_Only) in a separate topic but I can't work out in my head how you'd deal with chapter breaks in your TOC. I
think that if you put your chapter break in your TOC on the topic that contains just the chapter heading, it should work, but I suggest you have a play and see what happens.
Hope that's given you something to think about.