Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to display content only in 'view' mode (and so, not visible in 'edit' mode)?

Kushank Maheshwari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 6, 2023

AIM: I am looking for a way to make my content visible to everyone, but whenever any person tried to edit that confluence page i.e. goes into edit mode, some specific fields from the page must become uneditable for him.

Approaches: I saw this post: https://community.atlassian.com/t5/Confluence-questions/How-to-display-content-only-in-edit-mode-and-so-not-visible-in/qaq-p/701884. And I want to do exactly opposite of this.

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2023

Welcome to the Atlassian Community!

There's no function for this directly, but you can do it.  Let's say you have three blocks of text, on your page which are simply

Alice would like a pet cat

Bob would like a pet dog

Charlie would like a pet rabbit

You can "protect" the middle line by

  • Creating a new page somewhere else, called say "Bob"
  • Content: Bob would like a pet dog
  • Restriction: only you can edit it (everyone can see it)
  • Rewrite the original page as 
Alice would like a pet cat

{include: Bob}

Charlie would like a pet rabbit

People editing the original page won't be able to edit the text they see in view.  It's not perfect though - they could remove it or change the target page.

Kushank Maheshwari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 10, 2023

Thanks a lot!! This worked for me.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events