Create a completely blank Confluence page?

Hi all,

I was wondering if there was a way to strip all content from a Confluence page (headers, footers, etc.) and only have user-created HTML (A couple buttons and words).

My reasoning is trying to have authentication access to an iFrame that will be outward facing. We want to create the iFrame and point it to a blank Confluence page, then only give certain Confluence users access to edit it.

Thanks in advance!

3 answers

Scroll Viewport let you do this. It provides for simple content theming for Confluence (no need to deal with overly complex Confluence themes).

In your case, you can create a template that only outputs the "naked" content like this:

<html>
  <head>
    <title>$page.title</title>
  </head>
  <body>
    $page.content
  </body>
</html>

Please make sure to check out the Getting Started Guide (http://www.k15t.com/display/VPRT/Getting+Started+Guide) and the template reference (http://www.k15t.com/display/VPRT/Template+Reference).

Hope this helps,
-Stefan

I don't think any component of Confluence renders a naked page with only the contents. I've tried to do that before and I had to create a plugin to do that.

If you create a plugin for that, have a look at ViewPageAction#execute() in the source of Confluence (which you can download from http://my.atlassian.com). That will give you a good example of how Confluence renders content.

Another approach you can use is to prevent Confluence from applying any decorator to the file. You do this by editing the decorators.xml file. Within the <decorator name="none"> block, add the following:

<url-pattern>/your-pattern</url-pattern>

hth,

-matt

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

372 views 20 10
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