Hi Cindy,

I assume xwiki.org has details about using the toc macro. I honestly don't remember where I read about it - but I assume it was here: thisis the link to the XWiki 2.0 syntax that's in the site transition faq: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax

{{toc start="2" depth="3" numbered="false" scope="page"/}}

start=2 means to start at the second level - so second-level items (marked with "==") are automatically the items on the contents list. Depth=3 means the lowest depth that is marked in the contents list. Numbered=false means I don't want the TOC numbered.

So in the user-action-faq and the site-transition-faq I chose start=2 and depth=3. So every item marked with "==" or "===" is automatically put in the table of contents at the top of the page. The list is indented to show the sections and questions within a section. And every item in the TOC a link to the section below.

http://hub.opensolaris.org/bin/view/Main/user-action-faq
http://hub.opensolaris.org/bin/view/Main/site-transition-faq

Does that help? Or am I not understanding the question? I don't know exactly where your FAQ is so I don't know what it looks like.

Bonnie


On 10/27/09 01:44 PM, Cindy Swearingen wrote:
Bonnie,

I see how the TOC macro works to generate the top-level TOC, but I don't see how it works to generate links in each subsection, like this:

section1
question1#link
question2#link
question3#link

#1. abc?

#2. def?

#3. ghi?

I tried using another macro string in the subsection but that doesn't
work. Maybe I'm not modifying it correctly.

{{toc start="2" depth="3" numbered="true" scope="page"/}}

Is this syntax described somewhere?

I don't see another FAQ that has subsections. Penny and I both use this
model.

Thanks,

Cindy

On 10/27/09 12:19, Bonnie Corwin wrote:
Hi Penny,

FYI, the content preparation page explains that HTML anchors do not work in XWiki. The solution is to use the XWiki Table of Contents (TOC) macro in the XWiki page.

Attached is the text for the PDL FAQ as an example of how to use the toc macro.

Hope that helps.

Bonnie


On 10/27/09 12:14 PM, [email protected] wrote:
Hi Bonnie,

Links aren't working for the Zones FAQ either. I guess I need the examples, too.

Thanks,

Penny


On 10/27/09 11:01, Bonnie Corwin wrote:
Hi Cindy,

The XWiki Table of Contents (TOC) macro is what you should use. I'm happy to tsend you examples of FAQs on the site if you like. Let me know. It's pretty easy to use.

Thanks.

Bonnie




On 10/27/09 11:45 AM, Cindy Swearingen wrote:
Hi everyone,

I used JSP and media wikis but I can't figure out how to fix the link
text in all of my FAQs. All of my FAQ links are broken.

If I have a set of section links, like this:

section1
section2
section3

section1
.......
.......
.......

section2
.......
.......

section3
........
........

What is the link markup to link to each section?


Thanks,

Cindy
_______________________________________________
website-discuss mailing list
[email protected]

_______________________________________________
website-discuss mailing list
[email protected]



_______________________________________________
website-discuss mailing list
[email protected]

Reply via email to