Page Editing
- Content Editing
- Section Editing
- Simple and Advanced editing profiles
- Common edit actions
- Wiki editing
- WYSIWYG editing
- Choosing a Syntax
- Setting the page parent
- Hiding Pages
- Form editing mode (aka inline mode)
- Objects editing mode
- Classes editing mode
- Access Rights editing mode
- Full Screen Mode
- Title Behavior
- Authors
- Locking
- Edit conflict
- Extension page protection
- Default Language
Describes all the features available to edit a wiki page.
Content Editing
All XWiki pages are editable provided you are logged in and / or you have edit right.
To edit a page, use the Edit button, usually located in the top right corner of the page (but its position may vary depending on the skin your wiki is using); for the Flamingo skin it looks like this:
Section Editing
Use the section edit link (pencil icon), located on the right of some of the page headings. For example:
See the Section Configuration page in the Admin Guide for configuration options.
If you can't find the Edit button nor the section edit links then it probably means you don't have the right to edit the current page.
Simple and Advanced editing profiles
Because XWiki is an application wiki, not all users will need to use the same features. For this reason, XWiki comes with a basic and an advanced editing profile. Users can easily choose which editing profile they prefer on their User Profile page (available at the top right of the page when you are logged in). This way, standard users do not have to choose between editing profiles they may not be familiar with. By default, new users are given the Basic editing profile, but they can switch to the Advanced profile as described below.
Simple Profile
Clicking on the "Edit" button has the following behavior for a "Simple" user:
- If the current page is displayed by a sheet (e.g. if the page has an object attached that has a sheet associated with it) then the page will be edited in Inline form edit mode.
- If the current page does not have a sheet (i.e. it's a plain wiki page) then:
- XWiki 12.3+ If the preferred content editor is the WYSIWYG editor and the syntax of the current page supports WYSIWYG editing then the page will be edited in-place.
- XWiki <12.3 If the preferred content editor is the WYSIWYG editor and the syntax of the current page supports WYSIWYG editing then the page will be edited in Standalone mode.
- Otherwise, the page will be edited in Wiki edit mode.
Advanced Profile
Experienced XWiki users will want to use all the editing choices (particularly those who want to use XWiki programming features). They can choose to switch to advanced profile on their user profile page (see image below). Following this, clicking on the arrow in the "Edit" button on any page will display the full editing menu, letting the user choose the mode to use ("Wiki", "Inline form", "Objects"...).
Once you have switched to advanced profile, the "Edit" menu will look like the following, on mouse click:
- Form Editing Mode
- Object Editing Mode
- Class Editing Mode
- Access Rights Editing Mode. Note that this menu entry will only appear for Terminal pages. For Nested Pages, you'll be able to access rights by clicking on the "Administer Page" entry in the "More Actions" menu (3 vertical dots menu).
In addition, advanced users have the ability to create Terminal pages (i.e. pages that can't have children).
Common edit actions
All edit modes have some or all of the elements in the following image :
The minor edit checkbox is meant to mark the fact that superficial changes were made to the page. Such changes may include, but are not restricted to: spelling error corrections, text rearrangements, formatting. It is the editor's responsibility to distinguish between major and minor changes.
By default, minor edits do not appear in the "What's New" page and in the page history. The option "Show minor edits" will list all the versions, including minor ones.
The Version summary field allows entering a short description of the changes made to the page in the version that is being saved. It is displayed in the history page and it is meant to increase comprehensibility of the content's evolution.
The Cancel button causes the changes to be discarded and forwards to the page view mode.
The Preview button shows the page as it would look with the current changes saved, but does not actually change the page. From the preview mode, the user will be able to cancel the changes, return to edit mode or save the changes. This button is not available in all edit modes.
The Save & Continue button submits the current changes and returns to the current edit mode.
The Save & View button submits the current changes and returns to the page view mode.
Autosave
The Autosave feature automatically saves the page you're working on as a minor version at a given interval. Just check the Autosave checkbox next to the action buttons, at the bottom of the editing area. You can optionally change the autosave interval by entering the desired number of minutes in the input following the checkbox.
Wiki editing
This is a mode you should be familiar with if you're already a wiki user. In this mode you can enter text using a simple Wiki Syntax. Note that the Help Application provides help on the syntax when editing a page.
This is how the wiki edit mode looks like with the Flamingo skin:
WYSIWYG editing
Editing in WYSIWYG is ideal for first time users or people who do not want to use the Wiki Syntax. It's similar to your favorite word processor in which you see how what you type is rendered. There's a toolbar available to add special effects to your text, add images, insert links, add macros, etc.
Read the documentation for using the WYSIWYG editor for more details.
There are 2 modes available:
In-place editing mode
XWiki 12.3+
In-place editing allows you to edit the title and the content of a wiki page while remaining in view mode. The advantage over the Standalone WYSIWYG editing mode is that it loads fast and that you don't loose the context. Moreover, the in-place section editing provides a quick way to edit a section of a page's content without having to scroll the page.
You can translate the page in the current language, if the translation is missing and multilingual is on, by using the Translate button. All the following changes will be saved to the new translation.
Standalone editing mode
Standalone editing allows you to edit the content by navigating to an Edit UI different from the view UI.
XWiki <12.3 This was the main WYSIWYG editing mode. Advanced users can still access it by choosing it in the page Edit Menu. Simple users can also access if the wiki has been configured to have the in-place editing mode disabled, in which case, this mode becomes the default WYSIWYG editing mode. Note that there's currently a limmitation and this mode is still used when creating a page.
Choosing a Syntax
You have the option to choose what syntax you want to use for writing the content of a page (see the XWiki Syntax Guide for more details and the Rendering wiki for a full list of available syntaxes).
To choose the syntax to use for the current page, you can do one of the following:
- Edit the page in wiki edit mode or in WYSIWYG Standalone edit mode and change the syntax by using the right Panel entitled "Information Panel", as in:
Converting between Syntaxes
If you already have content for the page in a given syntax and you try to change the syntax to another one, then XWiki will propose to convert your content to the new syntax, if it knows how to perform that conversion (i.e. if there is a parser available for the old syntax and a renderer available for the new syntax). For instance, switching to the XWiki Syntax 2.0+ will always prompt for a conversion.
If you accept the syntax conversion then XWiki will update the content editor with the result of the conversion. The quality of the conversion will usually be good but may depend on the quality of the original Syntax; for example converting from XWiki Syntax 1.0 to XWiki Syntax 2.0+ may not generate a perfect result so you'll need to review manually the result.
Rejecting the syntax conversion will only change the syntax identifier, letting you do the syntax conversion yourself. The same will happen if the syntax conversion is not possible.
Setting the page parent
XWiki 7.2+
The concept of setting the page parent has been deprecated in favor of the Nested Pages feature. The location of a page is no longer controlled by the "parent" field. In order to change a page's location you now need to Rename or Move it to another location.
For example a page "CEO" inside a page "Boarding" inside a page "Management" inside a page "Staff" you would have the following Breadcrumb:
XWiki <7.2
In order to have an organized structure of your page, when you create a new page in a space, its parent will be automatically set to be the WebHome page of the space in which you create the page.
If you want to change the parent of the page, you have to edit the page with wiki or WYSIWYG editors.
Click on the small pencil above the page title in order to edit the page parent.
Hiding Pages
It's possible to hide (or unhide) pages. When a page is hidden, it'll still be visible if you navigate explicitly to it but it'll disappear from Search, Page Index, Navigation Trees, etc. However the hidden page will still be visible to users who've configured their user profile to show Hidden Pages. By default, users don't see hidden pages.
To hide a page, you can do one of the following:
- Edit the page in wiki edit mode or in WYSIWYG Standalone edit mode and set the hidden option, by using the right Panel entitled "Information Panel", as in:
Form editing mode (aka inline mode)
Inline mode, or Form mode, is a special feature of XWiki, that allows administrators to define patterns of structured information (like a blog entry, or a standard tax form). Pages containing such structured information can be edited and re-edited as simple HTML Forms, which have (almost) the same structure as the displayed page. Thus, when clicking the edit button, it seems that the page content can be edited in-place, or inline and the form view is automatically displayed.
Technically the inline mode is triggered automatically differently whether the page is written in XWiki Syntax 1.0 or 2.0, using the following algorithm:
- XWiki Syntax 1.0: If the page contains a call to #includeForm()
- XWiki Syntax 2.0: If the page has an associated sheet (see the Developer documentation for the Sheet Module)
Note that it is beyond the scope of this simple guide to explain the programming technique supporting this feature. Please check the Developer's Guide to find out more about programming with Objects/Classes and Forms.
Objects editing mode
In XWiki it's possible to attach Objects to pages. Objects are simple sets of properties with values that add additional information about a page. For example a security right can be added to a page to control its rights, a blog object is attached to a page representing a blog entry, etc. Again, it's beyond this simple guide to explain this programming technique. Please check the Developer's Guide to know more about programming with Objects/Classes.
Classes editing mode
We've seen that some pages can have Objects attached to them. Some pages can also be Object definitions, a.k.a Classes. The Classes editing mode calls the class editor on the current page, allowing to edit the Classes attached to the page. Again, it's beyond this simple guide to explain this programming technique. Please check the Developer's Guide to find out more about programming with Objects/Classes.
Access Rights editing mode
This mode allows you to control the access rights for the page you're viewing (you need to have the required access rights to modify a page's rights). See the Rights Management topic for more information.
Full Screen Mode
A full-screen mode is available in XWiki. When editing a page either in Wiki or WYSIWYG mode, clicking on the button at the top right of the edit box will send the editor in full-screen mode. You can then edit your page as usual and click on the button to return to the usual interface when you are finished.
The button you need to click to go in full-screen mode
Editing while in full-screen mode
Title Behavior
Pages have both names and titles. The page name is used in the URL to the page while the title is used to display a user-friendly short description of the page. The title is used for example as the top level headings when viewing a page.
Page titles can be set while editing pages in Wiki or WYSIWYG modes.
Titles are not mandatory by default but it's possible to configure XWiki to make titles mandatory.
The title's content is parsed using Velocity so you're also allowed to put Velocity content in there in addition to plain text (this is for example useful when wanting to internationalize titles). Note that you're not allowed to use any wiki markup.
When a page has no title set then XWiki will use the page name as its title.
Authors
Pages have different kind of authors that are updated and manipulated for different purposes. We distinguish 4 different kind of author information:
XWiki 14.0+
Locking
By default, when you edit a page, a lock is put on the page (the duration can be configured), till you either Save (any kind of Save), Cancel the edition or close the browser window.
If you keep the page open in the browser without doing any Save action, the lock will be active by default for 30 minutes (see lock duration configuration).
Anyone trying to edit a page that is locked will see the following warning message allowing you to know that the page is locked and also to force the lock.
If you force the lock then the last user who saves will overwrite the content with his version of the page.
Edit conflict
XWiki 11.2+
XWiki detects during the edition of a page if a conflict might happen when saving the page. If this warning occurs, this means someone edited and saved the page while you were working on it.
XWiki 11.3.1+, 11.4+
You have two main choices:
- force save the page: in that case you will override saved while you were editing the page; they are not really lost though since they might be retrieved in the previous version of the page.
- reload the editor: in that case your changes will be lost and the editor will be reloaded with the last version saved.
We display the diff between the version you're trying to save and the last version that has been saved, so you can copy some changes made and reapply them if you like.
Note that you can also simply cancel the save and go back to the editor to make changes before trying again to save.
You can click on the arrow of each action to have a quick description of what it actually means.
XWiki 11.5+
The support of conflict edition was improved by implementing a merge on save mechanism. This means that in case of conflict edition (two users saving the same page at the same time), instead of always displaying a window to the user asking what to do, we first try to perform a merge of both page. If the changes concerned two very different parts of the page (two different sections, an edit performed on an object against an edit of the content, etc) the user won't notice that a merge has been performed.
Now, some conflicts might still occur if both users tried to edit the same part of the page. In that case, a new window is displayed asking the user what to do.
The user will now have three different choices:
- Merge the page and fix conflict with his/her own changes: this means that as much as possible, we try to merge the changes. Only for the part that are conflicting, we only kept the changes from the last user. This is the recommended choice.
- Force save the page: this means no merge at all will be performed. Only the changes performed by the last user will be saved. It basically discards the changes made by the previous user.
- Reload the editor: this choice might be taken very carefully as it might cause a loss of data. It means that the current changes performed on the page will be completely lost and the editor will be reloaded with the last changes.
The conflict window now display the changes that will be performed for each choices. Be careful with the parts in red since it shows what part of the page will be lost during the operation. Note that it's also possible to select two specific versions of the page to perform a comparison before making a choice.
XWiki 11.8+
The conflict edition window allows one more choice: to fix each conflict individually. This new choice is marked as advanced since it's not something easy to handle.
When choosing the new option, the UI is updated to display the changes between the latest version saved and the current version the user is trying to save. At each place a conflict occurred, the changes display an orange bar and a blue area is reserved for the conflict resolution.
This blue area displays some text, and a select with several choices. The displayed text in the blue area is what will be used for fixing the conflict, you can see the text changing for each choice.
The conflict choices are the following:
- current version (default): the conflict is fixed by getting the current changes
- before your changes: the conflict is fixed by getting what was there before you starting to edit. Both latest version saved and your current changes would be lost for this conflict,
- latest version saved: the change made on the latest version saved (the one you are conflicting with) are taken to fix the conflict
- custom version: with this option, a text area is displayed to allow you to enter any new value to fix the conflict. Multiple lines can be entered.
If the choice text displays something in red, it is because no content is actually available for the chosen version to fix the conflict: usually it means the content in conflict will be removed with the choice made.
Extension page protection
Extension pages are protected against editing (unless explicitly indicated otherwise in the extension) to avoid mistake a user could make while still allowing advanced users to force it if really required.
Default Language
If you've set up your wiki to be multingual, then when editing a page using the wiki editor, you'll be able to set the default language for the current page as in: