SlideShare uma empresa Scribd logo
1 de 21
XWiki
Développement rapide d'une
 application basée sur XWiki
Sommaire
• Premiers pas sur XWiki
• Créer une application sous XWiki



• Ressources :
  – JRE : Java Runtime Environment .
  – XWiki Enterprise 3.4 : Standalone.
Aperçu général.
Ajout d'utilisateur et groupe
Gestion des droits
• 3 Niveaux : Wiki, Espace ou Document
• 2 Éléments: Utilisateur ou Groupe
• 3 Droits : Autorisé, Non autorisé, Hérité
Personnalisation graphique
Personnalisation graphique
 Logo                 Header




               Menu




        View                   Panels
Métas données

• XWiki Classes
  – Types : Number, String,
    TextArea, Password,
    Boolean, Static List, Date..


• XWiki Objects
Scripting : Velocity
• http://velocity.apache.org/
• {{velocity}}
  #set($words = ["Some", "velocity", "code"])
  #foreach($word in $words)
   $word ##
  #end
  {{/velocity}}
Scripting : Groovy
• http://groovy.codehaus.org/
• {{groovy}}
  def list = ["one", "two"]
  list.each { item ->
    println "* ${item}"
  }
  {{/groovy}}
Créer une application
                               sous XWiki
            Application foire aux questions

Source :
   http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
1- Créer la XWiki Class
1- Créer la XWiki Class
2-Créer l’aperçu d’une FAQ
2-Créer l’aperçu d’une FAQ
3-Créer la FAQ Template
5- Créer la page d’accueil de la FAQ
• = Existing FAQ entries =
   {{velocity}}
   #set($sql = ", BaseObject as obj where obj.name = doc.fullName and
   obj.className = 'FAQ.FAQClass' and obj.name <> 'FAQ.FAQTemplate'")
   #set($results = $xwiki.searchDocuments($sql))
   #if($results.empty)
    No FAQ has been created yet!
   #else
    #foreach ($item in $results)
      #set($faq = $xwiki.getDocument($item))
      * [[${faq.display("question").replace("<p>", "").replace("</p>",
   "")}>>${item}]]
    #end
   #end
   {{/velocity}}
5- Créer la page d’accueil de la FAQ
• {{velocity}}
  #set($columns = ["question", "doc.creationDate", "_actions"])
  #set($columnsProperties = {
      "question" : { "type" : "text", "link" : "view", "html" : "true",
  "sortable":true },
      "_actions" : {"actions": ["edit","delete"]}
  })
  #set($options = {
     "className":"FAQ.FAQClass",
     "translationPrefix" : "faq.",
     "tagCloud" : true,
     "rowCount": 10
  })
  #livetable("faq" $columns $columnsProperties $options)
  {{/velocity}}
Testé le résultat :)
Qui a des questions ?
Liens utiles
• Site officiel : http://www.xwiki.org
• Contributions : http://extensions.xwiki.org
• Site de l’entreprise : http://www.nearbee.com

• Mailing List : devs@xwiki.org
• Blogs :
  – Vincent Massol http://massol.myxwiki.org
  – XE Incubator : http://incubator.myxwiki.org

Mon email : farouk.korteby@gmail.com

Mais conteúdo relacionado

Mais procurados

Nantes JUG - Elasticsearch
Nantes JUG - ElasticsearchNantes JUG - Elasticsearch
Nantes JUG - ElasticsearchDavid Pilato
 
Présentation de ElasticSearch / Digital apéro du 12/11/2014
Présentation de ElasticSearch / Digital apéro du 12/11/2014Présentation de ElasticSearch / Digital apéro du 12/11/2014
Présentation de ElasticSearch / Digital apéro du 12/11/2014Silicon Comté
 
Finist JUG - Elasticsearch
Finist JUG - ElasticsearchFinist JUG - Elasticsearch
Finist JUG - ElasticsearchDavid Pilato
 
Elasticsearch - Devoxx France 2012
Elasticsearch - Devoxx France 2012Elasticsearch - Devoxx France 2012
Elasticsearch - Devoxx France 2012David Pilato
 
Lyon JUG - Elasticsearch
Lyon JUG - ElasticsearchLyon JUG - Elasticsearch
Lyon JUG - ElasticsearchDavid Pilato
 
Elasticsearch - OSDC France 2012
Elasticsearch - OSDC France 2012Elasticsearch - OSDC France 2012
Elasticsearch - OSDC France 2012David Pilato
 
Paris data geek - Elasticsearch
Paris data geek - ElasticsearchParis data geek - Elasticsearch
Paris data geek - ElasticsearchDavid Pilato
 
Breizhcamp 2015 - Comment (ne pas réussir à) modéliser ses data dans elastics...
Breizhcamp 2015 - Comment (ne pas réussir à) modéliser ses data dans elastics...Breizhcamp 2015 - Comment (ne pas réussir à) modéliser ses data dans elastics...
Breizhcamp 2015 - Comment (ne pas réussir à) modéliser ses data dans elastics...Bruno Bonnin
 
ElasticSearch : Architecture et Développement
ElasticSearch : Architecture et DéveloppementElasticSearch : Architecture et Développement
ElasticSearch : Architecture et DéveloppementMohamed hedi Abidi
 
OWF12/HTML 5 local storage , olivier thomas, cto at webtyss
OWF12/HTML 5 local storage , olivier thomas, cto at webtyssOWF12/HTML 5 local storage , olivier thomas, cto at webtyss
OWF12/HTML 5 local storage , olivier thomas, cto at webtyssParis Open Source Summit
 
Introduction à ElasticSearch
Introduction à ElasticSearchIntroduction à ElasticSearch
Introduction à ElasticSearchFadel Chafai
 
Moteurs de recherche : un oeil sous le capot avec Elastic Search
Moteurs de recherche : un oeil sous le capot avec Elastic SearchMoteurs de recherche : un oeil sous le capot avec Elastic Search
Moteurs de recherche : un oeil sous le capot avec Elastic SearchAudrey Neveu
 
Oxalide Workshop #3 - Elasticearch, an overview
Oxalide Workshop #3 - Elasticearch, an overviewOxalide Workshop #3 - Elasticearch, an overview
Oxalide Workshop #3 - Elasticearch, an overviewLudovic Piot
 
Tunis big data_meetup__21_nov2015__aymenzaafouri
Tunis big data_meetup__21_nov2015__aymenzaafouriTunis big data_meetup__21_nov2015__aymenzaafouri
Tunis big data_meetup__21_nov2015__aymenzaafouriAymen ZAAFOURI
 
2014 03-26-appdevseries-session3-interactingwiththedatabase-fr-phpapp01-rev.
2014 03-26-appdevseries-session3-interactingwiththedatabase-fr-phpapp01-rev.2014 03-26-appdevseries-session3-interactingwiththedatabase-fr-phpapp01-rev.
2014 03-26-appdevseries-session3-interactingwiththedatabase-fr-phpapp01-rev.MongoDB
 
Hands on lab Elasticsearch
Hands on lab ElasticsearchHands on lab Elasticsearch
Hands on lab ElasticsearchDavid Pilato
 
2014 04-09-fr - app dev series - session 4 - indexing
2014 04-09-fr - app dev series - session 4 - indexing2014 04-09-fr - app dev series - session 4 - indexing
2014 04-09-fr - app dev series - session 4 - indexingMongoDB
 
Découverte de Elastic search
Découverte de Elastic searchDécouverte de Elastic search
Découverte de Elastic searchJEMLI Fathi
 
Besoin de rien Envie de Search - Presentation Lucene Solr ElasticSearch
Besoin de rien Envie de Search - Presentation Lucene Solr ElasticSearchBesoin de rien Envie de Search - Presentation Lucene Solr ElasticSearch
Besoin de rien Envie de Search - Presentation Lucene Solr ElasticSearchfrancelabs
 

Mais procurados (20)

Nantes JUG - Elasticsearch
Nantes JUG - ElasticsearchNantes JUG - Elasticsearch
Nantes JUG - Elasticsearch
 
Présentation de ElasticSearch / Digital apéro du 12/11/2014
Présentation de ElasticSearch / Digital apéro du 12/11/2014Présentation de ElasticSearch / Digital apéro du 12/11/2014
Présentation de ElasticSearch / Digital apéro du 12/11/2014
 
Finist JUG - Elasticsearch
Finist JUG - ElasticsearchFinist JUG - Elasticsearch
Finist JUG - Elasticsearch
 
Elasticsearch - Devoxx France 2012
Elasticsearch - Devoxx France 2012Elasticsearch - Devoxx France 2012
Elasticsearch - Devoxx France 2012
 
Lyon JUG - Elasticsearch
Lyon JUG - ElasticsearchLyon JUG - Elasticsearch
Lyon JUG - Elasticsearch
 
Elasticsearch - OSDC France 2012
Elasticsearch - OSDC France 2012Elasticsearch - OSDC France 2012
Elasticsearch - OSDC France 2012
 
Paris data geek - Elasticsearch
Paris data geek - ElasticsearchParis data geek - Elasticsearch
Paris data geek - Elasticsearch
 
Breizhcamp 2015 - Comment (ne pas réussir à) modéliser ses data dans elastics...
Breizhcamp 2015 - Comment (ne pas réussir à) modéliser ses data dans elastics...Breizhcamp 2015 - Comment (ne pas réussir à) modéliser ses data dans elastics...
Breizhcamp 2015 - Comment (ne pas réussir à) modéliser ses data dans elastics...
 
ElasticSearch : Architecture et Développement
ElasticSearch : Architecture et DéveloppementElasticSearch : Architecture et Développement
ElasticSearch : Architecture et Développement
 
OWF12/HTML 5 local storage , olivier thomas, cto at webtyss
OWF12/HTML 5 local storage , olivier thomas, cto at webtyssOWF12/HTML 5 local storage , olivier thomas, cto at webtyss
OWF12/HTML 5 local storage , olivier thomas, cto at webtyss
 
Introduction à ElasticSearch
Introduction à ElasticSearchIntroduction à ElasticSearch
Introduction à ElasticSearch
 
Moteurs de recherche : un oeil sous le capot avec Elastic Search
Moteurs de recherche : un oeil sous le capot avec Elastic SearchMoteurs de recherche : un oeil sous le capot avec Elastic Search
Moteurs de recherche : un oeil sous le capot avec Elastic Search
 
Oxalide Workshop #3 - Elasticearch, an overview
Oxalide Workshop #3 - Elasticearch, an overviewOxalide Workshop #3 - Elasticearch, an overview
Oxalide Workshop #3 - Elasticearch, an overview
 
jQuery
jQueryjQuery
jQuery
 
Tunis big data_meetup__21_nov2015__aymenzaafouri
Tunis big data_meetup__21_nov2015__aymenzaafouriTunis big data_meetup__21_nov2015__aymenzaafouri
Tunis big data_meetup__21_nov2015__aymenzaafouri
 
2014 03-26-appdevseries-session3-interactingwiththedatabase-fr-phpapp01-rev.
2014 03-26-appdevseries-session3-interactingwiththedatabase-fr-phpapp01-rev.2014 03-26-appdevseries-session3-interactingwiththedatabase-fr-phpapp01-rev.
2014 03-26-appdevseries-session3-interactingwiththedatabase-fr-phpapp01-rev.
 
Hands on lab Elasticsearch
Hands on lab ElasticsearchHands on lab Elasticsearch
Hands on lab Elasticsearch
 
2014 04-09-fr - app dev series - session 4 - indexing
2014 04-09-fr - app dev series - session 4 - indexing2014 04-09-fr - app dev series - session 4 - indexing
2014 04-09-fr - app dev series - session 4 - indexing
 
Découverte de Elastic search
Découverte de Elastic searchDécouverte de Elastic search
Découverte de Elastic search
 
Besoin de rien Envie de Search - Presentation Lucene Solr ElasticSearch
Besoin de rien Envie de Search - Presentation Lucene Solr ElasticSearchBesoin de rien Envie de Search - Presentation Lucene Solr ElasticSearch
Besoin de rien Envie de Search - Presentation Lucene Solr ElasticSearch
 

Destaque

Livre blanc promotion des applications mobiles juillet 2011
Livre blanc   promotion des applications mobiles juillet 2011Livre blanc   promotion des applications mobiles juillet 2011
Livre blanc promotion des applications mobiles juillet 2011MarketingZ
 
Presentación3
Presentación3Presentación3
Presentación3kokito07
 
Valorisation et gestion durable des milieux : le cas de l'estuaire de la Sein...
Valorisation et gestion durable des milieux : le cas de l'estuaire de la Sein...Valorisation et gestion durable des milieux : le cas de l'estuaire de la Sein...
Valorisation et gestion durable des milieux : le cas de l'estuaire de la Sein...hg-langlois
 
Introducción a internet y servicios
Introducción a internet y serviciosIntroducción a internet y servicios
Introducción a internet y serviciosrafaalucenaa
 
Seguridad industrial UNIVERSIDAD ECCI
Seguridad industrial UNIVERSIDAD ECCISeguridad industrial UNIVERSIDAD ECCI
Seguridad industrial UNIVERSIDAD ECCIjcarlo19
 
Roosevelt2012 Diaporama 20 avril 2013
Roosevelt2012 Diaporama 20 avril 2013Roosevelt2012 Diaporama 20 avril 2013
Roosevelt2012 Diaporama 20 avril 2013René Amberg
 
FlickR / Wordpress.com: comment inserer une photo?
FlickR / Wordpress.com: comment inserer une photo?FlickR / Wordpress.com: comment inserer une photo?
FlickR / Wordpress.com: comment inserer une photo?Noblet Charlotte
 
Le bénévolat : un atout à ta carrière
Le bénévolat : un atout à ta carrièreLe bénévolat : un atout à ta carrière
Le bénévolat : un atout à ta carrièreCatherine Bernier
 
técnicas de acercamiento a la comunidad
técnicas de acercamiento a la comunidadtécnicas de acercamiento a la comunidad
técnicas de acercamiento a la comunidadElibeht Alcala Santo
 
Pressbook Kiro'o Recap 2014
Pressbook Kiro'o Recap 2014Pressbook Kiro'o Recap 2014
Pressbook Kiro'o Recap 2014Olivier Madiba
 
Primeros auxilios pacifico 2013
Primeros auxilios pacifico 2013Primeros auxilios pacifico 2013
Primeros auxilios pacifico 2013fhtorresr
 
Global Issues in Communication EPFL
Global Issues in Communication EPFLGlobal Issues in Communication EPFL
Global Issues in Communication EPFLAdrian Holzer
 

Destaque (20)

Article%20 intelligence%20collective%20(2)
Article%20 intelligence%20collective%20(2)Article%20 intelligence%20collective%20(2)
Article%20 intelligence%20collective%20(2)
 
Images
ImagesImages
Images
 
Lyout
LyoutLyout
Lyout
 
Livre blanc promotion des applications mobiles juillet 2011
Livre blanc   promotion des applications mobiles juillet 2011Livre blanc   promotion des applications mobiles juillet 2011
Livre blanc promotion des applications mobiles juillet 2011
 
Appel a-projet pmup-2013
Appel a-projet pmup-2013Appel a-projet pmup-2013
Appel a-projet pmup-2013
 
Bps
BpsBps
Bps
 
Presentación3
Presentación3Presentación3
Presentación3
 
Valorisation et gestion durable des milieux : le cas de l'estuaire de la Sein...
Valorisation et gestion durable des milieux : le cas de l'estuaire de la Sein...Valorisation et gestion durable des milieux : le cas de l'estuaire de la Sein...
Valorisation et gestion durable des milieux : le cas de l'estuaire de la Sein...
 
Introducción a internet y servicios
Introducción a internet y serviciosIntroducción a internet y servicios
Introducción a internet y servicios
 
Seguridad industrial UNIVERSIDAD ECCI
Seguridad industrial UNIVERSIDAD ECCISeguridad industrial UNIVERSIDAD ECCI
Seguridad industrial UNIVERSIDAD ECCI
 
Roosevelt2012 Diaporama 20 avril 2013
Roosevelt2012 Diaporama 20 avril 2013Roosevelt2012 Diaporama 20 avril 2013
Roosevelt2012 Diaporama 20 avril 2013
 
Nps2 bb5.tmp
Nps2 bb5.tmpNps2 bb5.tmp
Nps2 bb5.tmp
 
FlickR / Wordpress.com: comment inserer une photo?
FlickR / Wordpress.com: comment inserer une photo?FlickR / Wordpress.com: comment inserer une photo?
FlickR / Wordpress.com: comment inserer une photo?
 
Le bénévolat : un atout à ta carrière
Le bénévolat : un atout à ta carrièreLe bénévolat : un atout à ta carrière
Le bénévolat : un atout à ta carrière
 
técnicas de acercamiento a la comunidad
técnicas de acercamiento a la comunidadtécnicas de acercamiento a la comunidad
técnicas de acercamiento a la comunidad
 
Pressbook Kiro'o Recap 2014
Pressbook Kiro'o Recap 2014Pressbook Kiro'o Recap 2014
Pressbook Kiro'o Recap 2014
 
Primeros auxilios pacifico 2013
Primeros auxilios pacifico 2013Primeros auxilios pacifico 2013
Primeros auxilios pacifico 2013
 
Management interculturel extrait3
Management interculturel extrait3Management interculturel extrait3
Management interculturel extrait3
 
Global Issues in Communication EPFL
Global Issues in Communication EPFLGlobal Issues in Communication EPFL
Global Issues in Communication EPFL
 
Manual Balay - campana 3 bc792m
Manual Balay - campana 3 bc792mManual Balay - campana 3 bc792m
Manual Balay - campana 3 bc792m
 

Semelhante a Jug algeria x wiki-atelier

Jquery - introduction au langage
Jquery - introduction au langageJquery - introduction au langage
Jquery - introduction au langageStrasWeb
 
Jug algeria x wiki-conference
Jug algeria x wiki-conferenceJug algeria x wiki-conference
Jug algeria x wiki-conferenceAlgeria JUG
 
XWiki : Framework de développement pour les plateformes collaboratives
XWiki : Framework de développement pour les plateformes collaborativesXWiki : Framework de développement pour les plateformes collaboratives
XWiki : Framework de développement pour les plateformes collaborativesKorteby Farouk
 
I don't always write reactive application but when I do, it run on raspberry pi
I don't always write reactive application but when I do, it run on raspberry piI don't always write reactive application but when I do, it run on raspberry pi
I don't always write reactive application but when I do, it run on raspberry piadelegue
 
Grails from scratch to prod - MixIT 2011
Grails from scratch to prod - MixIT 2011Grails from scratch to prod - MixIT 2011
Grails from scratch to prod - MixIT 2011Aurélien Maury
 
GraphTour - Workday: Tracking activity with Neo4j (French version)
GraphTour - Workday: Tracking activity with Neo4j (French version)GraphTour - Workday: Tracking activity with Neo4j (French version)
GraphTour - Workday: Tracking activity with Neo4j (French version)Neo4j
 
Présentation complète de l'HTML5
Présentation complète de l'HTML5Présentation complète de l'HTML5
Présentation complète de l'HTML5jverrecchia
 
La mobilité dans Drupal
La mobilité dans DrupalLa mobilité dans Drupal
La mobilité dans DrupalAdyax
 
Cours j query-id1575
Cours j query-id1575Cours j query-id1575
Cours j query-id1575kate2013
 
Codedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
Codedarmor 2012 - 06/03 - HTML5, CSS3 et JavascriptCodedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
Codedarmor 2012 - 06/03 - HTML5, CSS3 et Javascriptcodedarmor
 
Développement Web - HTML5, CSS3, APIs Web
Développement Web - HTML5, CSS3, APIs WebDéveloppement Web - HTML5, CSS3, APIs Web
Développement Web - HTML5, CSS3, APIs WebYoann Gotthilf
 
Cours php & Mysql - 2éme partie
Cours php & Mysql - 2éme partieCours php & Mysql - 2éme partie
Cours php & Mysql - 2éme partiekadzaki
 
Cours yeoman backbone box2d
Cours yeoman backbone box2dCours yeoman backbone box2d
Cours yeoman backbone box2dhugomallet
 
Play Framework
Play FrameworkPlay Framework
Play FrameworkArmaklan
 
L avenir du web au prisme de la resource
L avenir du web au prisme de la resourceL avenir du web au prisme de la resource
L avenir du web au prisme de la resourceFabien Gandon
 

Semelhante a Jug algeria x wiki-atelier (20)

HTML5
HTML5HTML5
HTML5
 
JQuery
JQueryJQuery
JQuery
 
Jquery - introduction au langage
Jquery - introduction au langageJquery - introduction au langage
Jquery - introduction au langage
 
Présentation nouveauté java7
Présentation nouveauté java7Présentation nouveauté java7
Présentation nouveauté java7
 
Jug algeria x wiki-conference
Jug algeria x wiki-conferenceJug algeria x wiki-conference
Jug algeria x wiki-conference
 
XWiki : Framework de développement pour les plateformes collaboratives
XWiki : Framework de développement pour les plateformes collaborativesXWiki : Framework de développement pour les plateformes collaboratives
XWiki : Framework de développement pour les plateformes collaboratives
 
Apprenez le jQuery
Apprenez le jQueryApprenez le jQuery
Apprenez le jQuery
 
I don't always write reactive application but when I do, it run on raspberry pi
I don't always write reactive application but when I do, it run on raspberry piI don't always write reactive application but when I do, it run on raspberry pi
I don't always write reactive application but when I do, it run on raspberry pi
 
Grails from scratch to prod - MixIT 2011
Grails from scratch to prod - MixIT 2011Grails from scratch to prod - MixIT 2011
Grails from scratch to prod - MixIT 2011
 
GraphTour - Workday: Tracking activity with Neo4j (French version)
GraphTour - Workday: Tracking activity with Neo4j (French version)GraphTour - Workday: Tracking activity with Neo4j (French version)
GraphTour - Workday: Tracking activity with Neo4j (French version)
 
Présentation complète de l'HTML5
Présentation complète de l'HTML5Présentation complète de l'HTML5
Présentation complète de l'HTML5
 
La mobilité dans Drupal
La mobilité dans DrupalLa mobilité dans Drupal
La mobilité dans Drupal
 
Cours j query-id1575
Cours j query-id1575Cours j query-id1575
Cours j query-id1575
 
Codedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
Codedarmor 2012 - 06/03 - HTML5, CSS3 et JavascriptCodedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
Codedarmor 2012 - 06/03 - HTML5, CSS3 et Javascript
 
Développement Web - HTML5, CSS3, APIs Web
Développement Web - HTML5, CSS3, APIs WebDéveloppement Web - HTML5, CSS3, APIs Web
Développement Web - HTML5, CSS3, APIs Web
 
Cours JavaScript
Cours JavaScriptCours JavaScript
Cours JavaScript
 
Cours php & Mysql - 2éme partie
Cours php & Mysql - 2éme partieCours php & Mysql - 2éme partie
Cours php & Mysql - 2éme partie
 
Cours yeoman backbone box2d
Cours yeoman backbone box2dCours yeoman backbone box2d
Cours yeoman backbone box2d
 
Play Framework
Play FrameworkPlay Framework
Play Framework
 
L avenir du web au prisme de la resource
L avenir du web au prisme de la resourceL avenir du web au prisme de la resource
L avenir du web au prisme de la resource
 

Jug algeria x wiki-atelier

  • 1. XWiki Développement rapide d'une application basée sur XWiki
  • 2. Sommaire • Premiers pas sur XWiki • Créer une application sous XWiki • Ressources : – JRE : Java Runtime Environment . – XWiki Enterprise 3.4 : Standalone.
  • 5. Gestion des droits • 3 Niveaux : Wiki, Espace ou Document • 2 Éléments: Utilisateur ou Groupe • 3 Droits : Autorisé, Non autorisé, Hérité
  • 7. Personnalisation graphique Logo Header Menu View Panels
  • 8. Métas données • XWiki Classes – Types : Number, String, TextArea, Password, Boolean, Static List, Date.. • XWiki Objects
  • 9. Scripting : Velocity • http://velocity.apache.org/ • {{velocity}} #set($words = ["Some", "velocity", "code"]) #foreach($word in $words) $word ## #end {{/velocity}}
  • 10. Scripting : Groovy • http://groovy.codehaus.org/ • {{groovy}} def list = ["one", "two"] list.each { item -> println "* ${item}" } {{/groovy}}
  • 11. Créer une application sous XWiki Application foire aux questions Source : http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
  • 12. 1- Créer la XWiki Class
  • 13. 1- Créer la XWiki Class
  • 16. 3-Créer la FAQ Template
  • 17. 5- Créer la page d’accueil de la FAQ • = Existing FAQ entries = {{velocity}} #set($sql = ", BaseObject as obj where obj.name = doc.fullName and obj.className = 'FAQ.FAQClass' and obj.name <> 'FAQ.FAQTemplate'") #set($results = $xwiki.searchDocuments($sql)) #if($results.empty) No FAQ has been created yet! #else #foreach ($item in $results) #set($faq = $xwiki.getDocument($item)) * [[${faq.display("question").replace("<p>", "").replace("</p>", "")}>>${item}]] #end #end {{/velocity}}
  • 18. 5- Créer la page d’accueil de la FAQ • {{velocity}} #set($columns = ["question", "doc.creationDate", "_actions"]) #set($columnsProperties = { "question" : { "type" : "text", "link" : "view", "html" : "true", "sortable":true }, "_actions" : {"actions": ["edit","delete"]} }) #set($options = { "className":"FAQ.FAQClass", "translationPrefix" : "faq.", "tagCloud" : true, "rowCount": 10 }) #livetable("faq" $columns $columnsProperties $options) {{/velocity}}
  • 20. Qui a des questions ?
  • 21. Liens utiles • Site officiel : http://www.xwiki.org • Contributions : http://extensions.xwiki.org • Site de l’entreprise : http://www.nearbee.com • Mailing List : devs@xwiki.org • Blogs : – Vincent Massol http://massol.myxwiki.org – XE Incubator : http://incubator.myxwiki.org Mon email : farouk.korteby@gmail.com