Modifications pour le document Books
Modifié par Jip-jan Alunkel le novembre 23, 10:59
Depuis la version 9.16
modifié par Jip-jan Alunkel
sur août 31, 02:07
sur août 31, 02:07
Commentaire de modification :
Updated class property
À la version 10.2
modifié par Jip-jan Alunkel
sur novembre 23, 10:58
sur novembre 23, 10:58
Commentaire de modification :
Removed class property "publish_year"
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (0 modifications, 1 ajouts, 0 suppressions)
-
Propriétés de la Classe (0 modifications, 0 ajouts, 1 suppressions)
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -1,6 +1,7 @@ 1 1 {{include reference="assets.pagemaker.macros"/}} 2 2 3 3 {{velocity}} 4 +#set($discard = $services.localization.use('document', 'assets.global.translations')) 4 4 #set($discard = $services.localization.use('document', 'assets.pagemaker.translations')) 5 5 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify' : false})) 6 6 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify' : false})) ... ... @@ -12,15 +12,16 @@ 12 12 <h2 class="livetable">Overview of all books</h2> 13 13 <div class="livetable"> 14 14 15 -#set ($columns = ["doc.title", "a uthor", "doc.space"])16 +#set ($columns = ["doc.title", "name", "doc.space"]) 16 16 #set ($columnsProperties = { 17 - "doc.title": 18 - " remedy"size"4},19 - "doc.space" size"4, "link": "space"}18 + "$stringtool.capitalize(doc.title)": {"type": "text", "filterable" : true, "sortable": true, "link": "view"}, 19 + "name": {"type": "text", "filterable" : true, "sortable": true, "headerClass": "author"}, 20 + "doc.space": {"type": "text", "filterable" : true, "sortable": true, "headerClass": "category", "link": "space"} 20 20 }) 21 21 #set ($options = { 22 - "className" : "books.WebHome", 23 - "translationPrefix" : "books.livetable.", 23 + "className" : "books.Code.booksClass", 24 + "translationPrefix" : "livetable.books.", 25 + "extraParams": "&name_class=assets.pagemaker.classes.persons", 24 24 "queryFilters" : "currentlanguage", 25 25 "rowCount": 10 26 26 }) ... ... @@ -30,7 +30,7 @@ 30 30 <h3>Add a book to this wiki</h3> 31 31 <p> 32 32 Do you know of any books that can be of value to people who would like to learn more about homeopathy? 33 - Please feel free to share these books with our readers. However, to make sure your case iscorrectlyfiled inthiswiki it is necessary that you answer a few simple questions about thecase.35 + Please feel free to share these books with our readers. However, to make sure your book is being filed correctly it is necessary that you answer a few simple questions about the book. 34 34 </p> 35 35 36 36 #set($form_start = { ... ... @@ -93,7 +93,7 @@ 93 93 "data-modal-input" : ["$services.localization.render('global.word.lastname')", "$services.localization.render('global.word.firstname')"], 94 94 "data-modal-input-glue": ", ", 95 95 "data-error-response-type" : "use_label_definite_1", 96 - "help-block" : 'Enter the last name of the author of this case. Choose the author from the list or create a new author.'98 + "help-block" : 'Enter the last name of the author of this book. Choose the author from the list or create a new author.' 97 97 }) 98 98 #createFormElement($author) 99 99 #set($extra_info = { ... ... @@ -101,7 +101,7 @@ 101 101 "type" : "checkbox", 102 102 "required" : "no", 103 103 "label" : "Extra information (optional)", 104 - "value" : " 1",106 + "value" : "", 105 105 "data-opener" : "true" 106 106 }) 107 107 #createFormElement($extra_info) ... ... @@ -115,7 +115,7 @@ 115 115 "placeholder" : "Year", 116 116 "data-error-response-type" : "use_label_definite_1", 117 117 "data-create-xobj" : "true", 118 - "data-xobj-classname" : "books. WebHome",120 + "data-xobj-classname" : "books.Code.booksClass", 119 119 "data-xobj-fieldname" : "publish_year" 120 120 }) 121 121 #createFormElement($publish_year)
- XWiki.ClassSheetBinding[0]
-
- Sheet
-
... ... @@ -1,0 +1,1 @@ 1 +books.Code.booksSheet
- publish_year
-
- Number
-
... ... @@ -1,1 +1,0 @@ 1 -2 - Number Type
-
... ... @@ -1,1 +1,0 @@ 1 -long - Size
-
... ... @@ -1,1 +1,0 @@ 1 -30 - Pretty Name
-
... ... @@ -1,1 +1,0 @@ 1 -publish_year - Name
-
... ... @@ -1,1 +1,0 @@ 1 -publish_year