Show last authors
1 /{{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}}
2
3 XWiki offers to perform several actions on a document (a.k.a a page).
4
5 = Create =
6
7 There are four ways to create new pages:
8
9 * You can **edit an existing page and create a link to your new page** (either in Wiki mode or in WYSIWYG mode). The resulting link will show up with a question mark next to it, showing it as a nonexistent page. Simply click on the link to create the page.(((
10 [[image:CreateInWYSIWYG.PNG||style="border: 1px solid black;"]]
11
12 This will take you to a page with a message to create the missing page (as presented above).**This is the recommended approach** as it'll allow you to create a navigation while you create new pages.
13 )))
14 * Starting with the [[Colibri skin>>extensions:Extension.Colibri Skin]] you can create a new page straight from the menu at the top of the page.(((
15 [[image:CreateMenu.PNG||style="border: 1px solid black;"]]
16 If you hover over the "Main" menu and click on "Create Page" the following will appear:
17
18 [[image:CreateInMenu.PNG||style="border: 1px solid black;"]]
19 Make sure you type the Space name in the first field, then add the Page name in the second field. Click the "Create" button and you will be able to edit your newly created page right away.
20 )))
21 * Starting with [[XWiki 2.6>>http://www.xwiki.org/xwiki/bin/view/Main/Download]] you can create a new page using the add menu:(((
22 [[image:AddPage.png||height="183" width="650"]]
23 )))Choose the page name and the space you want to create it into and click the "**Create**" button:
24
25 [[image:CreatePage.png||height="202" width="650"]]
26
27 * You can also **enter the new page name directly in the URL of your browser**. For example http://locahost:8080/xwiki/bin/view/SpaceName/PageName. If the space (##SpaceName## here) or page (##PageName## here) don't exist then you'll get an empty page with a message saying that the page doesn't exist and there'll be a link to create it :(((
28 [[image:CreateInURL.PNG||style="border: 1px solid black;"]]
29 )))
30
31 Starting with XWiki Enterprise 2.4 M2 users and applications can provide documents that can be used as template when creating new pages. The new document content (content, objects and other metadata) will be replicated from the template.
32
33 * After you have [[created the template and the template provider>>extensions:Extension.Administration Application]] you can go then start creating pages from this template:(((
34 [[image:1gcreatedocument.jpg||style="border: 1px solid black;"]]
35 )))
36
37 * This example shows that "Wanted Links" also offers the choice to create the new document from the available template ("My Template" template in the image below):(((
38 [[image:1ipopup.jpg||style="border: 1px solid black;"]]
39
40 = Edit =
41
42 This allows the editing of a page. See the [[page editing>>Features.PageEditing]] tutorial for more details.
43
44 = Show =
45
46 Whenever you click on a link to a page XWiki automatically shows the page in view mode. This is the default mode. XWiki also supports displaying the page in other formats that may be more adapted to specific circumstances:
47
48 {{toc start="2" depth="2" numbered="false" scope="page"/}}
49
50 == Code ==
51
52 You can view the content of a page without having to edit it (and thus you don't need edit rights). This option is shown only for users in [[Advanced Mode>>Features.PageEditing#HAdvancedMode]].
53
54 To see the code when using the Colibri skin, you have to go to the More Actions menu, and click on the View Source.
55
56 [[image:WikiCodeColibri.png||style="border: 1px solid black;"]]
57 [[image:WikiCodeResultColibri.png||style="border: 1px solid black;"]]
58
59 When using the Toucan skin, you do this by moving the mouse over the View Source button under View menu.
60
61 [[image:WikiCode.PNG||style="border: 1px solid black;"]]
62 [[image:WikiCodeResult.PNG||style="border: 1px solid black;"]]
63
64 == XML ==
65
66 XWiki allows exposing a page in XML. This is not ordinarily useful, but it can prove useful for example if you want to write a tool that automatically parses the content of a page. As the XML format is well-defined for all pages, this is much easier than doing screen-scrapping for example. In addition this XML format is used internally by XWiki for performing imports/exports of pages and whole wikis.
67
68 == Comments ==
69
70 Users with the comment right can leave comments on pages. This allows them to provide feedback without requiring edit rights.
71
72 Starting with XWiki 2.6 you can add a comment using the add menu:
73
74 [[image:AddComment.png||height="196" width="650"]]
75
76 On Colibri skin
77 [[image:CommentsColibri.PNG||style="border: 1px solid black;"]]
78
79 On Toucan skin
80 [[image:CommentsToucan.PNG||style="border: 1px solid black;"]]
81
82 == Attachments ==
83
84 A page can contain attachments. See [[Attachments>>Features.Attachments]] for more details.
85
86 == History ==
87
88 Displays the version history of the page. See [[Version Control>>Features.VersionControl]] for more details.
89
90 == Attributes ==
91
92 Displays a page's properties.
93
94 {{warning}}
95 The Attributes view is a work in progress
96 {{/warning}}
97
98 = Print =
99
100 There are several possible printing options (what you see may vary depending on the Skin used).
101
102 When using the Colibri Skin, you will find the Print Preview button on the top menu by hovering over More Actions:
103
104 * Print Preview: Generates a page which is formatted so that it can be easily printed using your browser's Print feature.(((
105 [[image:NewColibriPrintPreview.png||height="150" width="650"]]
106 )))
107
108 Under the Toucan skin the following options are found in the Print menu at the top:
109
110 * Print: Calls you're browser's Print feature to print the current page
111 * Print Preview: Generates a page which is formatted so that it can be easily printed using your browser's Print feature.(((
112 [[image:PrintToucan.PNG||style="border: 1px solid black;"]]
113 )))
114
115 = Export =
116
117 There are several possible exporting formats that XWiki supports : PDF, RTF, XAR, HTML exports: See the [[Export feature>>Features.Exports]] for more information.
118
119 On Colibri skin:
120 [[image:NewColibriExport.png||height="153" width="650"]]
121
122 On Toucan skin:
123 [[image:PrintToucan.PNG||style="border: 1px solid black;"]]
124
125 = Delete =
126
127 Removes a page. A confirmation is asked before the removal is done.
128 To restore a deleted document, go to Quick Links panel on the right side and click Document Index. Click on the Deleted Documents tab then click restore to the corresponding document you want to restore.
129
130 On Colibri skin:
131 [[image:NewDeleteColibri.png||height="170" width="650"]]
132 [[image:DeleteConfirmColibri.png||style="border: 1px solid black;" width="648"]]
133 [[image:NewDeleteColibriConfirm.png||height="256" width="650"]]
134
135
136
137 On Toucan skin:
138 [[image:DeleteToucan.PNG||style="border: 1px solid black;"]]
139 [[image:DeleteConfirmToucan.png||style="border: 1px solid black;"]]
140 [[image:RestoreDocumentToucan.png||style="border: 1px solid black;"]]
141
142 = Copy =
143
144 {{warning}}
145 This feature currently requires for an user to have Programming Rights in order to function. See [[XSCOLIBRI-209>>http://jira.xwiki.org/jira/browse/XSCOLIBRI-209]] and [[XWiki-508>>http://jira.xwiki.org/jira/browse/XWIKI-5081]]
146 {{/warning}}
147
148 It is possible to create a copy of an existing page. To do so, you need to do a [[search>>extensions:Extension.Search Application]] with Admin Rights using the title of the page you want to copy. You will then see a "copy" next to the page you want to copy.
149
150 After clicking on it you will be prompted to enter the location of the page you want to copy (that is, "where should the page be copied?"). Click on "copy" and you're done!
151
152 On Colibri skin
153 [[image:NewCopyPageColibri.png||height="198" width="650"]]
154
155 Choose the language and the target page then click the "**Copy**" button:
156
157 [[image:NewCopyPageConfirmColibri.png||height="218" width="650"]]
158
159 On Toucan skin
160 [[image:NewCopyPageToucan.png||height="162" width="650"]]
161
162 = Move/Rename =
163
164 A rename feature is available in XWiki. Its effect is to change the page name (that is, you get http:~/~/<server>/xwiki/bin/View/NewSpace/NewPageName instead of http:~/~/<server>/xwiki/bin/View/OldSpace/OldPageName) and all the backlinks linking to it. This means that you can easily move a page from one space to another, as well as keep them evolving with your wiki.
165 The rename will perform 2 refactoring:
166 - update backlinks
167 - update parent information
168
169 In colibri, you can access the rename feature for a page by clicking on Rename under the More Actions in the top menu bar:
170
171 [[image:RenameColibri.PNG||style="border: 1px solid black;"]]
172 [[image:RenameInputColibri.PNG||style="border: 1px solid black;"]]
173
174
175 When using the Toucan skin, the Rename function can be found under the Action menu in the top menu bar:
176
177 [[image:TopBarRenameToucan.PNG||style="border: 1px solid black;"]]
178 [[image:RenameInputToucan.PNG||style="border: 1px solid black;"]]
179
180 Once this is done, you will be prompted to input the new Space and Page name you want your document to take:
181
182 Now you can link to the page using its new name.
183
184 == Limitations ==
185
186 There are still some limitations on renaming:
187
188 * backlinks have to be turned on (they are turned on by default but if you have turned them off, rename will not rename backlinks and you'll have to turn them on again to benefit from this feature)
189 * backlinks in objects attached to pages are not currently renamed. You can track issue [[XWIKI-981>>http://jira.xwiki.org/jira/browse/XWIKI-981]] to follow the progress.
190 * backlinks are saved when a page is saved thus it may happen with a clean XWiki database that backlinks are not saved. In this special case, you can call the following in a page to refresh all links (you'll need to be admin to do this):(((
191 {{code language="none"}}
192 $xwiki.refreshLinks()
193 {{/code}}
194 )))
195
196 = Share Page by Mail =
197
198 [[image:share1.png||style="border: 1px solid rgb(0, 0, 0);"]]
199
200 [[image:share2.png||style="border: 1px solid rgb(0, 0, 0);"]]
201
202 [[image:share3.png||style="border: 1px solid rgb(0, 0, 0);"]]
203 )))

Get Connected