History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RNR-8
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Alain Moran
Reporter: Christian Nesemann
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Replace and render

some kind of noformat or text-only option for replace-and-render / replace-item

Created: 22/Apr/08 01:46 PM   Updated: 19/Nov/08 02:33 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
It would be nice to have a noformat-option or text-only option for replace-and-render in case of getting information of macros which output is more than text. (e.g. links...)

e.g.

{replace-and-render}
 {replace-item:%LIST%}{toc:type=flat|separator=","|mindepth=2|maxdepth=2}{replace-item}
    {replace-body}
     {list-data:ldTEST}
      {list-option} {list-option} 
      {label-option:%LIST}
     {list-data}
    {replace-body}
{replace-and-render}

Here the problem is that toc supplies link information which can't be used here. If i could use a "|textonly" this markup should work then.
This is only an example. I know some workarounds for this case.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
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.

Christian Nesemann - 19/Nov/08 02:32 PM - edited
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