Wiki source code of Step 2: Editing a page

Last modified by Lucas Charpentier (Sereza7) on 2024/11/28

Hide last authors
Simon Urli 32.1 1 XWiki is [[a wiki.>>xwiki:Documentation.UserGuide.GettingStarted.WhatIsAWiki]] As such, the content of its pages is easy to edit and modify.
Guillaume Lerouge 1.1 2
aliexe 16.1 3 = Edit a wiki page =
Guillaume Lerouge 1.1 4
Silvia Macovei 29.2 5 To start editing a wiki page, depending on your wiki's settings, you may need to log in. Look at the top left or right of your screen. Can you see the **{{velocity}}$services.icon.render('pencil'){{/velocity}} Edit** button?
aliexe 16.1 6
Silvia Macovei 20.2 7 {{image reference="EditButtonFlamingo.png"/}}
aliexe 16.1 8
Lucas Charpentier (Sereza7) 32.2 9 * If you cannot see the "Edit" button, please log in:
Silvia Macovei 26.1 10 ** Click on the drawer located at the top right of the page, then click "Log-in"
aliexe 16.1 11 ** Enter your username and password and click on "Log-in"
Lucas Charpentier (Sereza7) 32.2 12 ** {{warning}}If you still cannot see the "Edit" button, you may not have the right to edit that page. Sorry! You will need to ask your wiki admin for permissions.{{/warning}}
Silvia Macovei 26.1 13 * If you can see the "Edit" button, this means you are allowed to make changes to this page. Let's go!
aliexe 16.1 14 ** Click the "Edit" button
Akash Negi 31.5 15 ** {{version since="12.3"}} In-place editing will allow you to edit the title and the content of the wiki page while remaining in view mode, with the added advantage of not losing the context. The in-place section editing will help you edit a section without having to scroll the page.{{/version}}
Simon Urli 32.1 16 ** If a new page opens in your browser, you’re probably using an older version of XWiki where you can only edit pages in standalone mode. The content of the page is displayed in a rich text editor (sometimes called a WYSIWYG editor, meaning "What You See Is What You Get") or a source editor using [[XWiki syntax>>xwiki:Documentation.UserGuide.Features.XWikiSyntax]]. You can switch back and forth between the two modes.
DavidMarble 17.1 17 ** Use the editor to modify content. If you're not sure what to change, find a typo or grammatical error and fix it ;-)
Silvia Macovei 30.1 18 ** Once you're done with your modifications, you can enter a note under "Add Summary..." explaining what you changed. Then choose a button at the bottom to "Save & Continue" (save your work as a new version but keep editing), "Save & View" or "Preview" (only in standalone mode).
Silvia Macovei 26.1 19 * After you save the page, the new version featuring your edit will be online right away! Well done :-)
aliexe 16.1 20
Simon Urli 32.1 21 You can use a wiki for [[a wide range of purposes>>xwiki:Documentation.UserGuide.GettingStarted.WhatCanAWikiBeUsedFor]]. They offer a great way to put content online and share it with others.
aliexe 16.1 22
Ecaterina Moraru (Valica) 23.1 23 {{info}}
Akash Negi 31.5 24 Get started right now! Hunt the typo hidden in this page in order to edit and correct it!
Ecaterina Moraru (Valica) 23.1 25 {{/info}}
aliexe 16.1 26
Silvia Macovei 28.1 27 = The importance of links =
Guillaume Lerouge 8.1 28
DavidMarble 17.1 29 One of the main strengths of a wiki is that you can easily create links between pages. Easy link creation lets you create a structure within your wiki and cross-reference pages. Links make content easier to browse and find. This is why it is important to create links between your pages. To create new inter-wiki links when editing a page:
Ecaterina Moraru (Valica) 23.1 30
Silvia Macovei 27.1 31 * In rich text editing mode (WYSIWYG), highlight the word(s) you want to link, click on the "link" button, then click on the “Page” button and choose the page you want to link to from the tree, click “Select”, then click “OK”
Simon Urli 32.1 32 * In source editing mode, use one of the options explained in the [[XWiki syntax guide>>xwiki:Documentation.UserGuide.Features.XWikiSyntax#HLinks]]
Guillaume Lerouge 8.1 33
Silvia Macovei 29.1 34 {{success}}
35 **Next: [[Step 3 Page History>>PageHistory]]**
36 {{/success}}

Get Connected