Customize header.html for regisered servis

40 views
Skip to first unread message

artur mis

unread,
Jun 10, 2020, 11:07:39 AM6/10/20
to CAS Community
info:CAS 6.2.0-RC4 dokerized from cas-overlay-template-master

Problem:
After forwarded from serwis i.e nextor  CAS i can not see modification which i have made in header.html or footer.html for registered serwis.



Preparing customisation:

mkdir /cas-overlay-template-master/src/main/resources/templates/nextor
cp  
-R /cas-overlay-template-master/build/cas-resources  /cas-overlay-template-master/src/main/resources/templates/nextor



css customisation work .
cat /cas-overlay-template-master/src/main/resources/nextor.properties
cas
.theme.defaultThemeName=nextor <- i'm nos shure if it  must be here  ( without this dosn't work too) ?
cas
.standard.css.file=/themes/nextor/css/cas.css

cas-overlay-template-master/src/main/resources/static/themes/nextor$ ls
css  js
css changes work in nextor.


Serwis reg:
cat  /cas/services/cas-1.json
{
 
"@class" : "org.jasig.cas.services.RegexRegisteredService",
 
"serviceId" : "^(http|https|imaps)://.*",
 
"name" : "cas",
 
"id" : 1,
 
"evaluationOrder" : 0,
 
"theme" : "nextor",


I have also footer customised  globaly by overlaying it in :

/cas-overlay-template-master/src/main/resources/templates$ ls
casLoginView
.html  fragments  nextor

And this work but  if i want change footer in serwis nextor no.

Dears any sugestions ?

-- 
Regards

artur mis

unread,
Jun 23, 2020, 7:43:41 AM6/23/20
to CAS Community
I think i have done it . There was some problem inside file  nextor.properties.I have inside this file  for my version cas:

cas.javascript.file=/themes/nextor/js/cas.js < - according to documnetation
but sould be:
cas.standard.js.file=/themes/nextor/js/cas.js



But there  are another problem that after authtentication and logout from nextor ( nextcloud)  service  if i would like to  log again cas use css and js  from customzation it doesnt use customized *.htm files (it use only css i js files ). Any advaises ? 

-- 
Regards
Reply all
Reply to author
Forward
0 new messages