Issue Details (XML | Word | Printable)

Key: TOC-59
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Christian Nesemann
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Confluence Table of Contents Plugin

{toc} with link=false option

Created: 28/Apr/08 06:41 AM   Updated: 29/Apr/08 06:28 AM
Component/s: {toc}
Affects Version/s: None
Fix Version/s: None
Security Level: public (Anyone can view the issue)

Time Tracking:
Not Specified

Labels:


 Description  « Hide
Would be nice if there will be an option to use {toc:style=flat | separator=","} without links. So you could create an "," separated list which then e.g. could be used for the {label-options}-macro.

Could look like this.

{toc:style=flat | separator="," | links=false}

Christian



 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
David Peterson added a comment - 28/Apr/08 06:53 AM
What exactly is your objective? To create a list-data field with a list of the headings in the current page? Just listing them out flat won't give you that anyway. What is your use case?

Christian Nesemann added a comment - 29/Apr/08 03:06 AM
Sorry for the impreciseness.

I have a list headings and want them as a label on another page.

It could be done like this

PAGE1:

{excerpt:hidden=true}
{toc:style=flat | separator="," | links=false}{excerpt}

PAGE2:

{replace-and-render}
{replace-item:%VAR%}{excerpt-include:PAGE1}{replace-item}
{replace-body}
{list-data:ldTEST}
{label-options:%VAR%}
{list-data}{replace-body}{replace-and-render}

David Peterson added a comment - 29/Apr/08 03:56 AM
Ok, I see what you're getting at, but it does seem an odd thing to do... You will still have issues if your label headings are not valid labels (ie. characters and numbers, no spaces or other punctuation)...

Christian Nesemann added a comment - 29/Apr/08 06:28 AM
Yes you are right. If you use it like that, you have to be careful, otherwise it won't work.
Isn't there any standard function that checks if the inserted word is a label and if not, the label won't be displayed ?

Btw. these headings are not always wanted as a label, sometimes a normal drop-down list will do it, that's why i asked for a syntax-change for list-data->list-option at customware.