Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

With the Search and replace function it is possible to search through the entire space or page for a certain text

With the Search and Replace function you can search through entire spaces for certain text content,

and replace it with a new one.

The Search and replace function can be found:

  • In the edit menu
  • In the toolbar
  • By pressing S

Image Added

UI Text Box
typetip

This function can be useful when copying spaces, for example when content has a lot of references to old content

,

like links, comments, names, etc.

For replacing a specific text content select a space or a page and open the popup window in the described way above.

Image Added


UI Text Box
typewarning

Be careful when unchecking the "Respect XML Tags". This might break your pages if misused.

UI Text Box
typetip

Check the example at the bottom of this page.

The following options can be used:

Search
Simple text or regexIt can be searched via simple text content or regular expression
Replace bySearched text gets replaced by this content

The new button is active when selecting spaces and/or pages:

Image Removed

and it opens a pop-up window with the available search&replace options:

Image Removed

Options explained

available search options: simple text or regex
Respect XML tags
it
  • It means that the searching will not break
the
  • XML tags
,
  • and will replace only the visible content on the page
use
  • Use this function carefully, if you don't understand
Confluences
  • Confluence's XML structure
,
  • because it
might break your pages WarningCareful when unchecking this checkbox, this
  • might break your pages
if wrongly used
  • !
Content choice
-here you can select which types of content should be changed
  • names of spaces, spaces description, pages names, page content and comments
ChangeThe following options can be changed. If one of this gets unchecked it will not be browsed.
Content search
Content search

How

Content search - how

the content will be searched (recursive or not) and if blog posts should be included

Now you
UI Text Box
typenote

It can either

search

be searched for content,

preview

previewed what

the

changes will

do

be done or directly

replace the content

replaced (this option cannot be undone).

Example of replacing
UI Expand
titleExample
UI Text Box

Replacing content when "Respect XML tags" checkbox is unchecked

After copying a space, I want all my links in the new space to point to my new space. This will not happen automatically, so I can use the "Search and replace" functionality from Space Admin.

UI Steps
UI Step

This is how the tag looks like at the moment (to get the page in this format, I have to click on the page options "View Storage Format" )

.

Code Block
<ri:page ri:space-key="NS" ri:content-title="New space Home" /> //original tag
UI Step

This is how I want it to be replaced:

Code Block
<ri:page ri:space-key="AS" ri:content-title="Another space Home" /> //updated tag
but
UI Step

But what will not work, is searching for:

Code Block
<ri:page ri:space-key="NS"
UI Step
and

And replacing

with 

with:

Code Block
<ri:page ri:space-key="AS"
because
UI Text Box
typenote
Because in this way, I will break Confluences XML structure.
UI Text Box
typetip

To save time and get things done quickly, check the following page for helpful shortcuts.


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue