Protect an attribute

To ensure the stability, maintainability, and reusability of your content, you can mark an attribute as Protected. If you mark an attribute as protected, it prevents authors from altering the attribute in the Oxygen editor. By default, only administrators can alter a protected attribute in the Oxygen editor. If you also want to give this ability a specific user or role, you must give them special permissions.

Tips and tricks

  • For more examples of using protected attributes, read Why would I want to protect an attribute?
  • By default, when creating an attribute, the Protected option is not selected.
  • You can select Protected in conjunction with any other property such as Profiled, Identifier, or Language.

If an attribute has the Protected property :

  • In the Oxygen editor, to delete or update protected attributes, users must have one of the following permissions:

    • Permissions to the can_modify_protected_attributes property

    • Administrator
  • This protection is enforced in the Oxygen editor in the following places:

    • Author mode

    • Edit XML Source mode

    • Reviews
    • Resolving reviews

Before you begin

You cannot protect a single instance of an attribute.

  • If you select the Protected option for an attribute, such as href, all uses of that href attribute are locked.
  • Users cannot update or delete any use of the Protected attribute in the Oxygen editor unless they are an administrator or have special permissions.
  • Users can add the Protected attribute to a document, but cannot change its value.
    • For example, if you protect the scalefit attribute that has a default value of Yes, any user can add this attribute to an image element, and it will have a value of Yes.
    • Users cannot change the scalefit's value to anything else without permissions.

These steps explain how to update an existing attribute to protect it in the Oxygen editor.

  • If the attribute doesn't exist yet, you can select the Protected option when you create it.
  • Follow the steps in: Create an attribute.

To protect an attribute:

  1. From the Administration menu, select Advanced Settings, and then Attribute Management.
  2. On the Attribute Management tab, select the attribute you want to protect.
  3. At the end of the attribute's row, click Update.

    Result: The Update attribute screen opens.

    After an attribute is created, you cannot change the Name. You can create a friendly Display Name or delete the attribute.

  4. To prevent an author from updating or deleting this attribute in the Oxygen editor unless they have permissions, select Protected.
  5. To save your changes, click Update.
    Results:
    • Administrators can see the updated attribute on the Attribute Management tab in the list of attributes.
    • Administrators can select the attribute from the lists on the XML Link Type Configuration screens.
    • Users can select this attribute in the Oxygen editor in the Attributes pane on the right side.
    • In the Oxygen editor, to delete or update protected attributes, users must have one of the following permissions:
      • Permissions to the can_modify_protected_attributes property
      • Administrator
    • This protection is enforced in the Oxygen editor in the following places:
      • Author mode
      • Edit XML Source mode
      • Reviews
      • Resolving review