Configure HTML export from Confluence

I need to export a large number of pages from our Confluence wiki to HTML.

I've tried the Export to HTML option and this works fine .

I've even edited the Page Export Layout footer to add the company name etc.

My problem is I want to remove the 'Created by' and 'Last Modified' just below the page title.

Does anyone have any suggestions ?

2 answers

1 accepted

0 votes
Accepted answer

Hi Peter,

If you are planning to import the exported pages to some other space, try changing it in the database straightaway after you import the html pages to that space. I think the CONTENT table has columns called CREATOR and LASTMODDATE, which you can set it to whatever you like (make it empty in your case) .

Even if you dont plan to import those pages to another space, you can still create a temporary space first, then do the database update like mentioned above and then export the pages back. Later on, you can delete the temporaray space if you want.

Thanks for the suggestion Yagnesh.

I couldn't find a way of doing what I wanted using the page templates in Confluence. I generated the HTML pages and then went through them in Notepad++ and manually removed the text I didn't want, not the best way to do it but it worked (and I must say the HTML is nicely formatted which made it easy)

If I have to do this on a regular basis I will probably write a PowerShell script to add/remove sections of the pages.

I know the templates are produced using Velocity but its a little complex for the occasional user to hack , maybe a simpler method of controlling the output format would be a good idea.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,365 views 98 8
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