Public View is available no matter which publishing approach is used. When not publishing within the same space, the public view doesn't provide any value and might confuse users.
To deactivate Public View link in a specific space or globally
to the space stylesheet (or globally, if you want to change it for all your spaces). This will hide the "Switch to Public View" link in the dropdown (but this will cause a tiny empty list entry in the dropdown, resulting in 'double borders').
Change background color on the page in the Public View
Open the global configuration
In the Look and Feel section click Custom HTML
Enter the following code into the At end of the HEAD field:
This code will color the background of the page in a light orange every time the public view is displayed. You can change the color by adjusting the values in brackets next to rgba.
Automatically redirect from Public View to Author View
Open the global Confluence configuration,
in the Look and Feel section click on Custom HTML,
enter the following code into the At end of the BODY field:
Scroll Versions ≥ 3.11.1
<script>
var clickLink = function() {
if (document.getElementById('sv-reader-view-toolbar-disable-readonlyview')) {
document.getElementById('sv-reader-view-toolbar-disable-readonlyview').click();
} else {
window.setTimeout(clickLink, 100);
}
};
clickLink();
</script>
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: Click Here