|
[
Permlink
| « Hide
]
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?
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} 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)...
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. |
|||||||||||||||||||||||||||||||||||||||||||||||||||