Exclude a Page layout column when exporting to PDF - how?

Hello,

Our wiki is set up so that it uses the page layout functionality to create two columns. The larger column to the left contains all the important content, so writing and pictures. The right one is used for the TOC and links etc.

We want to print the contents of the left column and not print the right column at all.

I'm sure this can be done by customising the space's CSS, but I've no idea how to do this. Can anyone help?

Thanks in advance.

2 answers

This widget could not be displayed.

You must search the html code, find the two columns and then find a way to hide the second one but not the first one (which is difficult because there is no such thing like "first/second" in the code).

You can try with:

div.columnLayout.twoColumns .cell { display: none; }
div.columnLayout.twoColumns .cell:first-child { display: block; }

Steffen,

thanks for your help. I've edited the HTML for other pages, so in my experience this sort of thing works per page, but not en masse. Not being much of a coder, I'd assume that this isn't something that I could add to the CSS. But I'll give it a try and see what happens. :)

Cheers.

This widget could not be displayed.

No, it is not a per page solution. The code I offered should be added to the CSS once and changes columns in all pages.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

44 views 4 5
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