<
From version < 97.1 >
edited by Thomas Mortagne
on 2017/03/28
To version < 98.1 >
edited by Ogis Tarkan
on 2017/05/12
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ThomasMortagne
1 +XWiki.OgisTarkan
Content
... ... @@ -49,7 +49,7 @@
49 49  {{image reference="CreateANewClass1.png"/}}
50 50  )))
51 51  * As you can see in the Breadcrumb below the new page will be created at location ##XWiki > FAQ##. In practice the Class Wizard will automatically prefix the page name with ##Class## (you could also enter ##FAQClass## as the page name directly).
52 -* Now it would be nice to have it created in a new location such as ##FAQ > FAQ Class##. Since the ##FAQ## parent doesn't exist we cannot use the Tree picker button. Thus click the Pencil button as shown in the following image and replace ##XWiki## by ##FAQ##:(((
52 +* Now it would be nice to have it created in a new location such as ##FAQ > FAQ Class##. Since the ##FAQ## parent doesn't exist we cannot use the Tree picker button. Thus click the Pencil button as shown in the following image and replace ##XWiki## by ##FAQ##. {{info}}If you don't see pencil, try to change user type to ##Advanced## in ##User profile > Preferences > User type## and reload page.{{/info}}(((
53 53  {{image reference="CreateANewClass2.png"/}}
54 54  )))
55 55  * In technical terms you're creating a page named ##FAQClass## (with a title of "FAQ Class") located in a space also called ##FAQ## and thus the technical reference is ##FAQ.FAQClass##.
... ... @@ -111,7 +111,7 @@
111 111  )))
112 112  * Click the first button ("Create the document sheet") to create the document sheet (the Page Design Sheet). This sheet determines how your page's objects will be rendered to the user. The document is automatically created.
113 113  * You should see a warning message with the text "The sheet is not bound to the class so it won't be applied automatically when a page that has an object of this class is displayed". Click the "Bind the sheet to the class" link that appears after the text. **What this does is important**:
114 -** It adds an object of type ##XWiki.ClassSheetBinding## to the ##FAQ.FAQClass" document. Basically it ties the FAQ Class to the Sheet.
114 +** It adds an object of type ##XWiki.ClassSheetBinding## to the ##FAQ.FAQClass" document. Basically it ties the FAQ Class to the Sheet.##
115 115  ** **It's because of this object that users will be sent to form edition mode when editing FAQ entries**
116 116  * Now click on "View the sheet document". This takes you to the ##FAQ.FAQSheet## page which you can edit in wiki mode and see its default content:(((
117 117  {{code language="none"}}
... ... @@ -127,7 +127,6 @@
127 127  {{/velocity}}
128 128  {{/code}}
129 129  )))Let's take a moment now and analyze this code:(((
130 -
131 131  * The first line retrieves the ##FAQ.FAQClass## from the wiki
132 132  * Then we iterate through all its properties and display their values for the current document in a definition list.
133 133  

Get Connected