Children Display macro with Include Excerpts not showing Images

Hi All,

I have a page, where i created an excerpts with an image and a few texts. In one of my other pages, i am usign the Children Display macro with Include Excerpts enabled. But i can only see the text from other child pages, no image.

I also tried with excerpts include macro, but this time i am getting the image from other pages.

But why the images are not showing up in the Children Display macro?

Thanks in advance,

JitheshG

4 answers

1 accepted

Thanks Thomas, but i managed to find another solution by creating a user macro wrapping excerpt-include. And now its working...

Knock knock... Anyone here...

Any help is appreciated....

Thanks in advance,

0 vote
Thomas Schlegel Community Champion May 16, 2013

Hi Jithesh,

I think, the Children Display Macro is only showing the first line of the excerpt, if there is text before the image, the image is not shown.

Another thing: Try to insert your image on the excerpt-source-page fully qualified, i.e. with space-ID and page name. In Wiki Markup it is looking something like that: !SpaceID:Pagename^imagename!

We use an older Confluence-Version and there, this helps. Without the full qualified name, we have the same problem: the image is not found.

Hope this helps

Cheers

Thomas

I believe this would be an axample of the user macro wrapping excerpt-include @Jithesh G was talking about. works for me

#set($count = 0)                                                 ## remove this line to display all children 
#set ($childpages = $content.getChildren())
#foreach ($page in $childpages)
      #if ($count < 6) ## just display the 1st 6 children        ## remove this line to display all children
<p><ac:structured-macro ac:name="excerpt-include"><ac:parameter ac:name=""><ac:link><ri:page ri:content-title="$page.displayTitle" /></ac:link></ac:parameter><ac:parameter ac:name="nopanel">true</ac:parameter></ac:structured-macro> </p>
        #set($count = $count + 1)                                ## remove this line to display all childre 
      #end                                                       ## remove this line to display all children 
#end

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,853 views 27 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you