This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:esup:esup_socle_3_2 [2011/09/12 20:53] PROCACCIA |
docpublic:systemes:esup:esup_socle_3_2 [2011/09/28 20:35] (current) PROCACCIA |
||
---|---|---|---|
Line 3553: | Line 3553: | ||
uportal-war/ | uportal-war/ | ||
+ | ===== XSL et composants du portails ===== | ||
+ | video4 18mn | ||
+ | |||
+ | la XSL principal est decomposé en 6 fichiers par " | ||
+ | uportal-war/ | ||
+ | |||
+ | Pour travailler a chaud sur les xls directement dans le repertoire webapps (comme pour CSS et javascritps) | ||
+ | Lors du travail sur les xsl il vous est possible de désactiver le cache (dans le custom.properties : | ||
+ | esup.xsl.cache=false) | ||
+ | il faut que l'URL change pour que la XSL change (changer d' | ||
+ | |||
+ | Eviter d'en modifier trop car a chaque changement de version c'est bcp de travail. Nancy a modifié essentiellement le fait d' | ||
+ | |||
+ | exemple de retrait du lien "Plan du site" | ||
+ | |||
+ | |||
+ | < | ||
+ | [esup@esup32dev ~/ | ||
+ | $ mkdir -p custom/ | ||
+ | [esup@esup32dev ~/ | ||
+ | $ cp update/ | ||
+ | |||
+ | $ vim components.xsl | ||
+ | |||
+ | [esup@esup32dev ~/ | ||
+ | $ diff components.xsl / | ||
+ | 187d186 | ||
+ | < <!-- Retrait du plan du site JP | ||
+ | 196d194 | ||
+ | < --> | ||
+ | </ | ||
+ | |||
+ | ===== Canaux, Canal Annuaire ===== | ||
+ | |||
+ | video 4 21mn40s | ||
+ | |||
+ | 24mn30 | ||
+ | Portlet Path est recherché dans le portlet.xml | ||
+ | la servlet "pluto invoquer" | ||
+ | |||
+ | |||
+ | ==== Canal Annuaire ==== | ||
+ | |||
+ | http:// | ||
+ | http:// | ||
+ | |||
+ | < | ||
+ | [esup@esup32dev ~/ | ||
+ | $ wget https:// | ||
+ | |||
+ | [esup@esup32dev ~/ | ||
+ | $ diff build.exemple.properties build.properties | ||
+ | 11c11 | ||
+ | < tomcat.home | ||
+ | --- | ||
+ | > tomcat.home | ||
+ | 14c14 | ||
+ | < uportal.home = E:/ | ||
+ | --- | ||
+ | > uportal.home = / | ||
+ | 17c17 | ||
+ | < deploy.home | ||
+ | --- | ||
+ | > deploy.home | ||
+ | </ | ||
+ | |||
+ | si pb au ant deploy sur le repartoire $tomcat_home/ | ||
+ | |||
+ | ==== Publication ==== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | en mode " | ||
+ | |||
+ | < | ||
+ | [esup@esup32dev ~/ | ||
+ | $ ant db.import -Ddir=/ | ||
+ | Buildfile: build.xml | ||
+ | ... | ||
+ | | ||
+ | | ||
+ | | ||
+ | ... | ||
+ | [java] Import of / | ||
+ | |||
+ | BUILD SUCCESSFUL | ||
+ | Total time: 18 seconds | ||
+ | </ | ||
+ | |||
+ | |||
+ | On peux aussi commencer sur ce premier canal par le publier via l' | ||
+ | |||
+ | Connexion Admin au portail => clique sur Gestionnaire de Cannaux (uPortal/ | ||
+ | helas cela plante ... | ||
+ | |||
+ | < | ||
+ | ERROR [org.jasig.portal.ChannelManager# | ||
+ | org.springframework.webflow.execution.ActionExecutionException: | ||
+ | at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java: | ||
+ | ... | ||
+ | Caused by: org.springframework.binding.expression.EvaluationException: | ||
+ | ... | ||
+ | Caused by: ognl.MethodFailedException: | ||
+ | ... | ||
+ | Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: | ||
+ | ... | ||
+ | Caused by: java.lang.IllegalArgumentException: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | [esup@esup32dev ~/ | ||
+ | $ ls -ald / | ||
+ | drwxrwxr-x 2 root esup 4096 Sep 22 11:42 / | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | Exporter le contenu de la base de données: | ||
+ | |||
+ | < | ||
+ | [esup@esup32dev ~/ | ||
+ | $ mkdir db-exports | ||
+ | [esup@esup32dev ~/ | ||
+ | $ ant db.export -Dtype=all -Ddir=/ | ||
+ | |||
+ | [esup@esup32dev ~/ | ||
+ | $ ls -l db-exports/ | ||
+ | total 44 | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:31 channel | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:31 channel-type | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:32 entity-type | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:31 fragment-layout | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:32 group_membership | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:31 layout | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:31 permission_set | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:31 profile | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:32 structure | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:31 theme | ||
+ | drwxrwxr-x 2 esup esup 4096 Sep 22 15:31 user | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ===== stats ===== | ||
+ | |||
+ | video4 39mn30s | ||
+ | |||
+ | Par defaut le portail agrège un fichier de stats definis dns le config.propoerties | ||
+ | |||
+ | < | ||
+ | # STATS Options | ||
+ | esup.stats.file=${esup.log.dir}/ | ||
+ | </ | ||
+ | |||
+ | ===== Mobiles ===== | ||
+ | |||
+ | video4 43mn | ||
+ | |||
+ | Par defaut le portail dispose de deux themes mobiles, iphone et android detectés sur le user-agent. | ||
+ | pour les canaux portlet ... c'est a eux de le gerer. Mais la navigation générale du portail est gérée . | ||
+ | |||
+ | UNR IDF => esup-mobile . | ||
+ | |||
+ | |||
+ | ===== JavaScripts ===== | ||
+ | |||
+ | video 4 46mn30s | ||
+ | |||
+ | javascript jquery ... exemple redimensionner dynamiquement une iframe et afficher aussi un bouton pour sortir l' | ||
+ | |||
+ | Penser a desagreger les CSS afin de rendre les codes source | ||
===== Tutoriel esup3 en video ==== | ===== Tutoriel esup3 en video ==== |