Dashboard > Atlassian Plugins > ... > Recipe Book > Custom children list recipe
  Atlassian Plugins Log In | Sign Up   View a printable version of the current page.  
  Custom children list recipe

Added by david , last edited by David Peterson on May 17, 2008  (view change)
Labels: 


Hi I am using following macro to display all child pages.
=========================

{report-list:depth=0\|style=none}

{content-reporter:scope=parent page> children\|type=page}

{text-filter:content:body\|html escape}

{report-info:content:summary}
{date-sort:content:creation date\|order=descending}
{content-reporter}

{report-body}
{report-image:content:icon} * {report-info:content:title\|link=true} - ({report-info:content:modification date\|format=dd MMM,yyyy} by {report-info:content:modifier\|link=true\|} \-\\- viewed {tracking-info:value=view count} zero {tracking-info} times.)
{report-body}

==========================================

Which gives me  following results

The title of the page
(08 Oct, 2007 by userA ? viewed 5 times.)
h2 {color:#333333}{*}Description{*}{color} Some text goes here...... h2 {color:#333333}{*}Script Version{*}{color} 1.0 ....

How do I escape the wiki mark up ( h2. {color} etc) and show just TEXT   .  I don't want to use wiki markup either

{report-info:content:body > first 100 \|render=wiki } because I am just trying to show a TEXT summary or snippet of each child page.

Thanks

I'm not quite sure what you're asking - the example you posted seems somewhat garbled...

You can use the {report-info:content:summary} to display a short summary. I'm not quite sure what you mean about displaying text vs wiki markup. By default, {report-info} will escape any markup. It will only render it if you specify 'render=wiki'.

Hi David

Thanks for the reply.
Hi David Thanks for the reply. gives me text but the text contains the the formatting anchors or tags for e.g h2 and color  Is it possible to get just text wihout any formatting tags?  Thanks&nbsp gives me text but the text contains the the formatting anchors or tags for e.g h2 and color 

Is it possible to get just text wihout any formatting tags? 

Thanks 

I am not sure why post are getting garbled

Ah - you want to strip out any wiki markup. There is nothing currently which would do that. I'm not certain how that would be achieved anyway. The only way I could think of is to render the text, then get only the 'text' portions of the resulting HTML. However, given that the HTML which is generated by Confluence and other macros is somewhat unreliable, it would have to be cleaned up first.

Whatever the case, it probably won't be an effecient process, even if it's implemented. But if you'd like to see it sometime, raise a feature request. No promises on when/if it will be implemented though.

Thanks I will do that .

Copyright(c) CustomWare Asia Pacific Pty Ltd
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators