Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Image Added
Excerpt
hiddentrue

Using the ignore-publishing macro to prevent some page content from being published

Note

Available Comala Publishing

for Server 2

v2.12+

Image Added

Overview

There might be content within a page that you don't want to publish for a variety of reasons.

For that use-case you can use the Ignore Publishing macro, which provides the ability to

do so. Excerpt
hiddentrue
Using the ignore-publishing macro to prevent some page content from being published

for content within the macro to be ignored by space publishing and single page publishing.

How does the macro work?

  • add the macro

, type {
  • by type {ign... 

  • choose ignore-publishing

}
  •  in the page location where you want to insert the content to be ignored

  • type, or copy and paste, the content within the macro body

  • Save your changes

adding ignore-publishing macroImage Removed

From now on, you can publish that page and that content won't be published to the target space.

Remember, this

This macro is ignored if you use the

Space

Copy

feature

space.

Example

The expected outcome looks like the following for the example above

Draft (source space) page

Image Removed
Image Added

Published (target space) page

Image Removed

warning
Image Added

This macro

only

works for

the Publish Space scope and Publish Page scope features. It

space publishing - both whole space and single-page publishing.

The macro will be ignored when using

Space Copy feature, which will copy all content as is

Copy space. All the content will be copied.