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

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.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Thursday in Off-topic

Friday Fun: Magic Eyes

...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...

458 views 83 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