Toc macro - skip heading and styling

I want two things…

  1. Skip a heading from displaying in toc. (What is {{notoc}} )
  2. Want to customize toc style… like accordian. Where and How can I edit the toc macro?

This is not implemented yet. See http://jira.xwiki.org/browse/XRENDERING-20

Open your browser’s dev tools and check the styles. Then use some CSS to style it using a stylsheet extension for example (see http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial).

So at present, is there an easy way to skip heading in toc?

No. Headings are meant to be in a TOC. If you don’t want it in a TOC, I guess you should use something else than a heading :slight_smile: (using the same style if you wish). For example using the HTML macro:

{{toc/}}

= heading =
aaaa

{{html}}
<h1>not in toc</h1>
{{/html}}

bbb

Thanks. It worked perfectly for me.
As I am not a coder, I only realize these simple solutions after somebody tells me. :laughing: