Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to show more children in sidebar?

Marcel Plomp
Contributor
September 5, 2013

We've just installed Confluence 5.0 and we are using the Global Look and Feel for most spaces.

If a home page has a lot of children, the sidebar shows just a few for instance 4. If you want to see more children you have to expand the option "5 more children".

How can I increse the number of children to 8 (or any other number) that is shown when viewing the homepage?

The same applies for child pages with more then a few children.

2 answers

1 accepted

0 votes
Answer accepted
CharlesH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2013

The following javascript (jQuery) statements will show all the children and hide the link that says "x more children":

AJS.$('ul.more-children').show();
AJS.$('a.more-children-link').hide();

How you embed this in your pages is up to you. Ideally you would want this on every page, so maybe the Custom HTML option in the Confluence Admin screens would be the best option.

Marcel Plomp
Contributor
September 5, 2013

This was very helpfull. THX.

I've implemented the following in the Custom HTML option , at end of the body:

<script type="text/javascript">
AJS.$('ul.more-children').show();
AJS.$('a.more-children-link').hide();
</script>

CharlesH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2013

You should really make the sure the elements you want to modify have been loaded before executing the show/hide statements. Wrapping those lines with the following code will do the trick:

AJS.toInit(function(){
    &lt;your code here&gt;
});

Reference: https://developer.atlassian.com/display/CONFDEV/Confluence+UI+Guidelines

0 votes
CharlesH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2013

One quick solution - switch to the Documentation theme. It will show all child pages by default.

Marcel Plomp
Contributor
September 5, 2013

I know, but using the Documentation theme is not wat we want.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events