|
|
|
[
Permlink
| « Hide
]
Alain Moran - 22/Oct/08 01:19 PM
I'm not sure I understand what you mean ... you want the replace item to not render at all? ... in your example that would give invalid wiki markup.
In the example i tried to get the output of the {toc}-macro and insert it into a label-options macro.
But now the problem is, that you got all html tags from the {toc}-macro, too! e.g. {replace-and-render}
{replace-item:%LIST%}{toc:type=flat|separator=","|mindepth=2|maxdepth=2}{replace-item}
{replace-body}
%LIST%
{replace-body}
{replace-and-render}
result <div><a href='#TEST-Seite-number'>number</a>,<a href='#TEST-Seite-titel'>titel</a>,<a href='#TEST-Seite-livesearch'>livesearch</a></div> The switch |textonly should remove all html-tags, so for the above example the output in the replace-body would only be "number, titel, livesearch" I hope i explained this better now |
||||||||||||||||||||||||||||||||||||||||||