Is there a way to limit the display of page titles with page tree

Moshe Naveh November 20, 2011

Hi,

I'm using pagetree macro in Confluence 3.2.1. Some of the pages have really longs titles. Is there a way to limit its length in a way that it doesn't corrupte the display of the page tree?

Thank you!

1 answer

1 accepted

0 votes
Answer accepted
Sandro Herrmann [Communardo]
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.
November 20, 2011

Hello,

a small and simple way is using CSS. Insert the following CSS code to your "Administration" > "Custom HTML" > "At the end of the BODY"-part

<style type="text/css">

.plugin_pagetree_children_span a {
overflow: hidden;
display: block;
width: 150px;
white-space: nowrap;
}
</style>

With this code the title max lengt in the pagetree is 150 pixel. Tested this code whith my CF 4.0.3

I hope it works for your 3.2 too.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events