Wiki source code of Document Lifecycle
Version 63.8 by Vincent Massol on 2010/06/16
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{box cssClass="floatinginfobox" title="**Contents**"}} | ||
2 | {{toc/}} | ||
3 | {{/box}} | ||
4 | |||
5 | XWiki offers to perform several actions on a document (a.k.a a page). | ||
6 | |||
7 | = Create = | ||
8 | |||
9 | There are three ways to create new pages: | ||
10 | |||
11 | * 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.((( | ||
12 | [[image:CreateInWYSIWYG.PNG||style="border:1px solid black;"]] | ||
13 | |||
14 | 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. | ||
15 | ))) | ||
16 | * Starting with the [[Colibri skin>>http://code.xwiki.org/xwiki/bin/view/Skins/ColibriSkin]] you can create a new page straight from the menu at the top of the page.((( | ||
17 | [[image:CreateMenu.PNG||style="border:1px solid black;"]] | ||
18 | If you hover over the "Main" menu and click on "Create Page" the following will appear: | ||
19 | |||
20 | [[image:CreateInMenu.PNG||style="border:1px solid black;"]] | ||
21 | 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. | ||
22 | ))) | ||
23 | * 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 :((( | ||
24 | [[image:CreateInURL.PNG||style="border:1px solid black;"]] | ||
25 | ))) | ||
26 | |||
27 | = Edit = | ||
28 | |||
29 | This allows the editing of a page. See the [[page editing>>Features.PageEditing]] tutorial for more details. | ||
30 | |||
31 | = Show = | ||
32 | |||
33 | 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: | ||
34 | |||
35 | {{toc start="2" depth="2" numbered="false" scope="page"/}} | ||
36 | |||
37 | == Code == | ||
38 | |||
39 | 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]]. | ||
40 | |||
41 | To see the code when using the Colibri skin, you have to go to the More Actions menu, and click on the View Source. | ||
42 | |||
43 | [[image:WikiCodeColibri.png||style="border:1px solid black;"]] | ||
44 | [[image:WikiCodeResultColibri.png||style="border:1px solid black;"]] | ||
45 | |||
46 | When using the Toucan skin, you do this by moving the mouse over the View Source button under View menu. | ||
47 | |||
48 | [[image:WikiCode.PNG||style="border:1px solid black;"]] | ||
49 | [[image:WikiCodeResult.PNG||style="border:1px solid black;"]] | ||
50 | |||
51 | == XML == | ||
52 | |||
53 | 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. | ||
54 | |||
55 | == Comments == | ||
56 | |||
57 | Users with the comment right can leave comments on pages. This allows them to provide feedback without requiring edit rights. | ||
58 | |||
59 | On Colibri skin | ||
60 | [[image:CommentsColibri.PNG||style="border:1px solid black;"]] | ||
61 | |||
62 | On Toucan skin | ||
63 | [[image:CommentsToucan.PNG||style="border:1px solid black;"]] | ||
64 | |||
65 | == Attachments == | ||
66 | |||
67 | A page can contain attachments. See [[Attachments>>Features.Attachments]] for more details. | ||
68 | |||
69 | == History == | ||
70 | |||
71 | Displays the version history of the page. See [[Version Control>>Features.VersionControl]] for more details. | ||
72 | |||
73 | == Attributes == | ||
74 | |||
75 | Displays a page's properties. | ||
76 | |||
77 | {{warning}} | ||
78 | The Attributes view is a work in progress | ||
79 | {{/warning}} | ||
80 | |||
81 | = Print = | ||
82 | |||
83 | There are several possible printing options (what you see may vary depending on the Skin used). | ||
84 | |||
85 | When using the Colibri Skin, you will find the Print Preview button on the top menu by hovering over More Actions: | ||
86 | * Print Preview: Generates a page which is formatted so that it can be easily printed using your browser's Print feature. | ||
87 | ((( | ||
88 | [[image:PrintColibri.PNG||style="border:1px solid black;"]] | ||
89 | ))) | ||
90 | |||
91 | Under the Toucan skin the following options are found in the Print menu at the top: | ||
92 | * Print: Calls you're browser's Print feature to print the current page | ||
93 | * Print Preview: Generates a page which is formatted so that it can be easily printed using your browser's Print feature. | ||
94 | ((( | ||
95 | [[image:PrintToucan.PNG||style="border:1px solid black;"]] | ||
96 | ))) | ||
97 | |||
98 | = Export = | ||
99 | |||
100 | There are several possible exporting formats that XWiki supports : PDF, RTF, XAR, HTML exports: See the [[Export feature>>Features.Exports]] for more information. | ||
101 | |||
102 | On Colibri skin: | ||
103 | [[image:ExportColibri.PNG||style="border:1px solid black;"]] | ||
104 | |||
105 | On Toucan skin: | ||
106 | [[image:PrintToucan.PNG||style="border:1px solid black;"]] | ||
107 | |||
108 | = Delete = | ||
109 | |||
110 | Removes a page. A confirmation is asked before the removal is done. This option is non reversible so be very careful when you use it. | ||
111 | |||
112 | On Colibri skin: | ||
113 | [[image:DeleteColibri.PNG||style="border:1px solid black;"]] | ||
114 | |||
115 | On Toucan skin: | ||
116 | [[image:DeleteToucan.PNG||style="border:1px solid black;"]] | ||
117 | |||
118 | = Copy = | ||
119 | |||
120 | {{warning}} | ||
121 | 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]] | ||
122 | {{/warning}} | ||
123 | |||
124 | It is possible to create a copy of an existing page. To do so, you need to do a [[search>>code:Applications.SearchApplication]] 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. | ||
125 | |||
126 | 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! | ||
127 | |||
128 | On Colibri skin | ||
129 | [[image:XWikiCopy.png||style="border:1px solid black;"]] | ||
130 | |||
131 | On Toucan skin | ||
132 | [[image:XWikiCopyToucan.png||style="border:1px solid black;"]] | ||
133 | |||
134 | = Move/Rename = | ||
135 | |||
136 | 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. | ||
137 | |||
138 | In colibri, you can access the rename feature for a page by clicking on Rename under the More Actions in the top menu bar: | ||
139 | |||
140 | [[image:RenameColibri.PNG||style="border:1px solid black;"]] | ||
141 | [[image:RenameInputColibri.PNG||style="border:1px solid black;"]] | ||
142 | |||
143 | |||
144 | When using the Toucan skin, the Rename function can be found under the Action menu in the top menu bar: | ||
145 | |||
146 | [[image:TopBarRenameToucan.PNG||style="border:1px solid black;"]] | ||
147 | [[image:RenameInputToucan.PNG||style="border:1px solid black;"]] | ||
148 | |||
149 | Once this is done, you will be prompted to input the new Space and Page name you want your document to take: | ||
150 | |||
151 | Now you can link to the page using its new name. | ||
152 | |||
153 | == Limitations == | ||
154 | |||
155 | There are still some limitations on renaming: | ||
156 | * 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) | ||
157 | * 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. | ||
158 | * 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):((( | ||
159 | {{code language="none"}} | ||
160 | $xwiki.refreshLinks() | ||
161 | {{/code}} | ||
162 | ))) |