Last modified by Simon Urli on 2023/10/10

<
From version < 92.6 >
edited by Vincent Massol
on 2017/01/17
To version < 92.8 >
edited by Vincent Massol
on 2017/01/17
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -146,22 +146,21 @@
146 146  * Navigate back to the ##FAQ.FAQClass## document (you can use the arrows in the breadcrumb to do so). The document should look like this:(((
147 147  {{image reference="FAQClass3.PNG"/}}
148 148  )))
149 -* Notice that now there is a link for the FAQSheet instead of the button that was previously there
150 150  * Click on the "Create the document template" button. The Authoring Template will be automatically created.
151 151  
152 -Note that we changed the space name preceding the page name also because we want all of our FAQ pages to reside in the same XWiki space
153 -Remember that all our documents will be copies of the Authoring Template used as a prototype so the content will be copied in all our FAQs documents and will execute the Design Sheet code in the context of the current document. See the [[dedicated page>>DevGuide.IncludeInVelocity]] for more information regarding this technique.
154 -Now we need to associate the prototype object with this document to turn it into a true authoring template.
151 +Note that earlier, we changed the space name preceding the page name because we wanted all of our FAQ pages to reside in a space named FAQ. Remember that all our documents will be copies of the Authoring Template used as a prototype so the content will be copied in all our FAQs documents and will execute the Design Sheet code in the context of the current document. See the [[dedicated page>>DevGuide.IncludeInVelocity]] for more information regarding this technique.
155 155  
156 -* If you're on the template page, click on "FAQClass" in the breadcrumb to get back to the FAQ Class page
157 -* At the bottom of the page, look for the following error message: "The template does not contain an object of type FAQClass. Add a FAQ object to the template »."
153 +Now we need to associate the prototype object with this document to turn it into a true authoring template:
154 +
155 +* If you're on the template page, navigate back to the ##FAQ.FAQClass## document.
156 +* At the bottom of the page, look for the following warning message: "The template does not contain an object of type FAQClass. Add a FAQ object to the template »."
158 158  * Click on "Add a FAQ object to the template »":(((
159 159  {{image reference="FAQObject.png"/}}
160 160  )))
161 161  
162 -Next we need to remove the title for the newly created template:
161 +Next, we want to remove the title for the newly created template:
163 163  
164 -* Navigate to FAQ.FAQTemplate
163 +* Navigate to the ##FAQ.FAQTemplate## document (you can click on the "View the template page (FAQ / FAQ Template)" link for doing that for example.
165 165  * Edit this document in Wiki mode
166 166  * Inside the Title field you have "FAQ Template" written -> delete this text
167 167  * Save & View
... ... @@ -169,6 +169,7 @@
169 169  This step is needed so that all of our future entries don't have "FAQ Template" as their title.
170 170  
171 171  Congratulations: you just created an Authoring Template! You're almost done now.
171 +
172 172  {{image reference="FAQClass4.PNG"/}}
173 173  
174 174  = Create a home page for the FAQ application =

Get Connected