This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
docpublic:systemes:ssocas:castheme [2010/09/27 15:27] PROCACCIA |
docpublic:systemes:ssocas:castheme [2011/09/08 13:36] (current) PROCACCIA |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== Référence ==== | ==== Référence ==== | ||
| - | http:// | + | |
| + | * http:// | ||
| + | * http:// | ||
| + | * http:// | ||
| ==== Arborescence Custom ==== | ==== Arborescence Custom ==== | ||
| Line 18: | Line 21: | ||
| [root@cas2 cas-toolbox-3.3.5-3]# | [root@cas2 cas-toolbox-3.3.5-3]# | ||
| cas.css | cas.css | ||
| + | </ | ||
| + | |||
| + | |||
| + | au final on aura ce type d' | ||
| + | |||
| + | < | ||
| + | [root@cas3 custom]# tree -a | ||
| + | . | ||
| + | └── webpages | ||
| + | ├── themes | ||
| + | │ ├── esup | ||
| + | │ │ ├── cas.css | ||
| + | │ │ ├── default-mobile-custom.css | ||
| + | │ │ └── images | ||
| + | │ │ | ||
| + | │ │ | ||
| + | │ └── tmsp1Theme | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | └── WEB-INF | ||
| + | ├── classes | ||
| + | │ ├── messages_fr.properties | ||
| + | │ ├── tmsp1Theme.properties | ||
| + | │ └── tmsp1Vues_views.properties | ||
| + | ├── usersFile | ||
| + | └── view | ||
| + | └── jsp | ||
| + | └── tmsp1Vues | ||
| + | └── ui | ||
| + | ├── casBlockedView.jsp | ||
| + | ├── casConfirmView.jsp | ||
| + | ├── casGenericSuccess.jsp | ||
| + | ├── casLoginView.jsp | ||
| + | ├── casLogoutView.jsp | ||
| + | ├── includes | ||
| + | │ ├── bottom.jsp | ||
| + | │ └── top.jsp | ||
| + | ├── serviceErrorSsoView.jsp | ||
| + | └── serviceErrorView.jsp | ||
| + | |||
| + | 14 directories, | ||
| + | |||
| + | |||
| </ | </ | ||
| Line 41: | Line 110: | ||
| === parametrage === | === parametrage === | ||
| - | Il faut indiquer a ant que nous allons utliser l' | + | Il faut indiquer a ant que nous allons utliser l' |
| < | < | ||
| - | [root@cas2 cas-toolbox-3.3.5-3]# grep custom build.properties | + | [root@cas3 cas-toolbox-3.4.7-1]# grep custom build.properties |
| custom.path=${basedir}/ | custom.path=${basedir}/ | ||
| cas.custom.webpage.path=${custom.path}/ | cas.custom.webpage.path=${custom.path}/ | ||
| Line 51: | Line 120: | ||
| < | < | ||
| - | [root@cas2 cas-toolbox-3.3.5-3]# grep tmsp1 config.properties | + | [root@cas3 cas-toolbox-3.4.7-1]# grep tmsp1 config.properties |
| theme=tmsp1Theme | theme=tmsp1Theme | ||
| views=tmsp1Vue | views=tmsp1Vue | ||
| Line 58: | Line 127: | ||
| === Création === | === Création === | ||
| - | Préparer l' | + | Préparer l' |
| < | < | ||
| - | $ mkdir -p custom.tmsp1/ | + | $ mkdir -p custom/ |
| </ | </ | ||
| - | Fichier tmsp1Theme.properties | + | recopier le fichier esup.properties |
| < | < | ||
| - | $ cat custom/ | + | [root@cas3 cas-toolbox-3.4.7-1]# |
| - | css=themes/ | + | </ |
| + | |||
| + | Fichier tmsp1Theme.properties appel les css: | ||
| + | |||
| + | < | ||
| + | [root@cas3 cas-toolbox-3.4.7-1]# | ||
| + | mobile.custom.css.file=themes/ | ||
| + | standard.custom.css.file=themes/ | ||
| </ | </ | ||
| Line 76: | Line 152: | ||
| < | < | ||
| - | [root@cas2 cas-toolbox-3.3.5-3]# mkdir custom/ | + | [root@cas3 cas-toolbox-3.4.7-1]# mkdir custom/ |
| </ | </ | ||
| Line 82: | Line 158: | ||
| < | < | ||
| - | [root@cas2 cas-toolbox-3.3.5-3]# cp update.esup/ | + | [root@cas3 cas-toolbox-3.4.7-1]# cp / |
| + | |||
| + | [root@cas3 cas-toolbox-3.4.7-1]# mkdir -p custom/ | ||
| - | [root@cas2 cas-toolbox-3.3.5-3]# mkdir -p | + | [root@cas3 cas-toolbox-3.4.7-1]# cp tmp/ |
| - | [root@cas2 cas-toolbox-3.3.5-3]# ls custom/ | + | [root@cas3 cas-toolbox-3.4.7-1]# grep it.png |
| - | tmsp-logo.gif | + | background:# |
| - | [root@cas2 cas-toolbox-3.3.5-3]# | ||
| - | background:# | ||
| </ | </ | ||
| Logo dans la section | Logo dans la section | ||
| Line 104: | Line 180: | ||
| < | < | ||
| - | [root@cas2 cas-toolbox-3.3.5-3]# mkdir -p custom/ | + | [root@cas3 cas-toolbox-3.4.7-1]# mkdir -p custom/ |
| - | [root@cas2 cas-toolbox-3.3.5-3]# cp -a build/ | + | [root@cas3 cas-toolbox-3.4.7-1]# cp -a build/ |
| - | [root@cas2 cas-toolbox-3.3.5-3]# ls -LtR custom/ | + | [root@cas3 cas-toolbox-3.4.7-1]# ls -LtR custom/ |
| custom/ | custom/ | ||
| - | includes | + | includes |
| - | casBlockedView.jsp | + | casBlockedView.jsp |
| custom/ | custom/ | ||
| - | top.jsp | + | bottom.jsp |
| </ | </ | ||
| Line 134: | Line 211: | ||
| < | < | ||
| - | [root@cas2 cas-toolbox-3.3.5-3]# cp build/ | + | [root@cas3 cas-toolbox-3.4.7-1]# cp build/ |
| </ | </ | ||
| - | On remplace toute auccorence | + | On remplace toute occurence |
| < | < | ||
| - | [root@cas2 cas-toolbox-3.3.5-3]# cat custom/ | + | [root@cas3 cas-toolbox-3.4.7-1]# cat custom/ |
| ### Login view (/login) | ### Login view (/login) | ||
| casLoginView.(class)=org.springframework.web.servlet.view.JstlView | casLoginView.(class)=org.springframework.web.servlet.view.JstlView | ||
| Line 158: | Line 236: | ||
| ### CAS error view | ### CAS error view | ||
| - | serviceErrorView.(class)=org.springframework.web.servlet.view.JstlView | ||
| - | serviceErrorView.url=/ | ||
| - | |||
| viewServiceErrorView.(class)=org.springframework.web.servlet.view.JstlView | viewServiceErrorView.(class)=org.springframework.web.servlet.view.JstlView | ||
| viewServiceErrorView.url=/ | viewServiceErrorView.url=/ | ||
| Line 182: | Line 257: | ||
| viewStatisticsView.(class)=org.springframework.web.servlet.view.JstlView | viewStatisticsView.(class)=org.springframework.web.servlet.view.JstlView | ||
| viewStatisticsView.url=/ | viewStatisticsView.url=/ | ||
| + | |||
| + | 403.(class)=org.springframework.web.servlet.view.JstlView | ||
| + | 403.url=/ | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ==== Messages ==== | ||
| + | |||
| + | on peux aussi personnaliser les messages (intitulés) via messages_fr.properties | ||
| + | |||
| + | < | ||
| + | [root@cas3 cas-toolbox-3.4.7-1]# | ||
| + | [root@cas3 cas-toolbox-3.4.7-1]# | ||
| + | </ | ||
| + | |||
| + | un ant init / deploy est necessaire apres chaque modification dans custom ! | ||
| ==== JSP Login ==== | ==== JSP Login ==== | ||