I want two things…
- Skip a heading from displaying in toc. (What is {{notoc}} )
- Want to customize toc style… like accordian. Where and How can I edit the toc macro?
I want two things…
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 (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.