Hi, I tried cas.themeResolver without success.
When I got the log, I didn't have my theme applied. I follow Jonathan Franzone explains, and modifying my theme file make it working. Just copying the default theme and adding a div do not work. We have to change fragments path.... I need now to understand how thymeleaf is working because change I made are not applyed as wanted. Cdly, Le vendredi 27 janvier 2017 18:17:39 UTC+1, HURTEVENT VINCENT a écrit : > > Hi, > > It seems that your cas.properties « cas.theme.defaultThemeName=ensam » > is not applied. > > I didn’t try the 5.0.x version yet, and the documentation says > cas.theme.deaultThemeName, but did you try the 4.x way with > : cas.themeResolver.defaultThemeName ? > > When you try to login into the service found as said in your log > > 2017-01-23 13:25:10,265 DEBUG [org.apereo.cas.services.web. >> ServiceThemeResolver] - <Found custom theme [ensam] for service [id=1000. >> .....] >> > > Do you get your ENSAM theme ? > > > > > > Le 27 janv. 2017 à 17:38, Jonathan Franzone <[email protected] > <javascript:>> a écrit : > > I'm trying to resolve this exact issue myself. If anyone has the answer or > finds it, can they please post for all? Thanks! > > On Monday, January 23, 2017 at 7:18:17 AM UTC-6, Matthieu Marc wrote: >> >> Hi, >> >> I am using CAS 5.0.2 and cas-maven-overlay. >> >> I am trying to create a custom theme named "ensam". >> >> In cas.properties, I added following lines in order to make my theme the >> default theme. >> >> cas.theme.paramName=theme >> cas.theme.defaultThemeName=ensam >> >> >> I create folder src/main/resources/templates/ensam and copied default >> views file in it. So that, I >> get src/main/resources/templates/ensam/casLoginView.html >> >> I changed this file. >> >> When I start CAS service (./build.sh run) and go to url /cas/login, I do >> not see my modification. >> >> In log, I got following : >> >> 2017-01-23 13:25:10,220 DEBUG [org.apereo.cas.services.web. >> RegisteredServiceThemeBasedViewResolver] - <Found view ensam/casLoginView >> > >> 2017-01-23 13:25:10,265 DEBUG [org.apereo.cas.services.web. >> ServiceThemeResolver] - <Found custom theme [ensam] for service [id=1000. >> .....] >> >> In my cas-overlay-template directory, I can find the file in theses >> places : >> >> find ./ -name casLoginView.html >> ./src/main/resources/templates/ensam/casLoginView.html [my original file] >> ./target/war/work/org.apereo.cas/cas-server-webapp/WEB-INF/classes/ >> templates/casLoginView.html [file without my changed] >> ./target/cas/WEB-INF/classes/templates/casLoginView.html [file from maven >> dependencies - without my changed] >> ./target/cas/WEB-INF/classes/templates/ensam/casLoginView.html [my file >> with changes] >> ./target/classes/templates/ensam/casLoginView.html [my file with changes] >> >> What I missed to make my theme working ? >> >> Thanks >> > > -- > - CAS gitter chatroom: https://gitter.im/apereo/cas > - CAS mailing list guidelines: > https://apereo.github.io/cas/Mailing-Lists.html > - CAS documentation website: https://apereo.github.io/cas > - CAS project website: https://github.com/apereo/cas > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/69640534-e1c9-4ea3-9e6f-7d9138f4b1d9%40apereo.org > > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/69640534-e1c9-4ea3-9e6f-7d9138f4b1d9%40apereo.org?utm_medium=email&utm_source=footer> > . > > > -- > - CAS gitter chatroom: https://gitter.im/apereo/cas > - CAS mailing list guidelines: > https://apereo.github.io/cas/Mailing-Lists.html > - CAS documentation website: https://apereo.github.io/cas > - CAS project website: https://github.com/apereo/cas > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/E9A27987-9D1A-455B-B63D-BDBD5B8C4245%40univ-lyon1.fr > > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/E9A27987-9D1A-455B-B63D-BDBD5B8C4245%40univ-lyon1.fr?utm_medium=email&utm_source=footer> > . > -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/f2313561-b41a-4f35-81c1-60a9e33e2aa4%40googlegroups.com.
