Can we override uPortal project .jsp files in the uPortal-start project?

39 views
Skip to first unread message

Lauren Anderson

unread,
Aug 14, 2018, 5:33:38 PM8/14/18
to uport...@apereo.org

I’ve made a couple modifications to the icons in the uPortal header which are in greeting.jsp and logout.jsp in the uPortal project. They are in the directory uPortal-webapp/src/main/webapp/WEB-INF/jsp/Invoker/.

 

Is it possible to do this in the uPortal-start project instead?

 

Lauren

Jonathan M. Tran

unread,
Aug 14, 2018, 5:43:41 PM8/14/18
to uport...@apereo.org

Yep! You simply toss the jsp in overlays/uPortal/src/main/webapp/WEB-INF/jsp/Invoker and ./gradlew overlays:uPortal:tomcatDeploy to redepoly. Hope this helps!

- Jonathan
--
You received this message because you are subscribed to the Google Groups "uPortal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-dev/.

Lauren Anderson

unread,
Aug 14, 2018, 9:57:20 PM8/14/18
to Jonathan M. Tran, uport...@apereo.org

Thank you. That works. I tried a couple other things, too.

 

I checked to see if I could also override changes I made in the uPortal project to some respondr layout .xsl files in uPortal-webapp/src/main/resources/layout/theme/respondr. I copied them to a directory I created in the uPortal-start project in overlays/uPortal/src/main/resources/layout/theme/respondr. Did the same for the content.less file in uPortal-webapp/src/main/webapp/media/skins/respondr/common/less/content.less (removed @portletWrapperBorderRadius and put it in variables.less where it makes more sense). I re-deployed and it worked great.

 

Two thoughts:

 

  1. Drew Willis et al. did a fantastic job of making it much easier to do skinning and layout customizations in the uPortal-start project. I’m amazed.
  2. We should probably document the many things that can be overridden and customized so others won’t have to ask the same questions. Or simply explain how files can be put in similarly-named directories in uPortal-start/overlays/uPortal and they will override the ones in the uPortal project. Maybe put this in the README.md of the uPortal-start project? Or in the uPortal wiki? Or both? I’d be happy to write this up if others agree.

 

Here’s our work in progress, all of the changes now in the uPortal-start project, including layout region changes and .jsp file changes:

 

 

 

 

 

Lauren

Jim Helwig

unread,
Aug 15, 2018, 9:16:10 AM8/15/18
to Lauren Anderson, Jonathan M. Tran, uport...@apereo.org
Contributions to documentation are always welcome! As we continue to build out the Github based documentation, you can easily offer pull requests.

JImH

On Aug 14, 2018, at 20:57, Lauren Anderson <laur...@byu.edu> wrote:

Thank you. That works. I tried a couple other things, too.
 
I checked to see if I could also override changes I made in the uPortal project to some respondr layout .xsl files in uPortal-webapp/src/main/resources/layout/theme/respondr. I copied them to a directory I created in the uPortal-start project in overlays/uPortal/src/main/resources/layout/theme/respondr. Did the same for the content.less file in uPortal-webapp/src/main/webapp/media/skins/respondr/common/less/content.less (removed @portletWrapperBorderRadius and put it in variables.less where it makes more sense). I re-deployed and it worked great.
 
Two thoughts:
 
  1. Drew Willis et al. did a fantastic job of making it much easier to do skinning and layout customizations in the uPortal-start project. I’m amazed.
  2. We should probably document the many things that can be overridden and customized so others won’t have to ask the same questions. Or simply explain how files can be put in similarly-named directories in uPortal-start/overlays/uPortal and they will override the ones in the uPortal project. Maybe put this in the README.md of the uPortal-start project? Or in the uPortal wiki? Or both? I’d be happy to write this up if others agree.
 
Here’s our work in progress, all of the changes now in the uPortal-start project, including layout region changes and .jsp file changes:
 
<image001.jpg>
 
 
<image002.jpg>
 
 
Lauren
 
 
From: <uport...@apereo.org> on behalf of "Jonathan M. Tran" <j...@cpp.edu>
Date: Tuesday, August 14, 2018 at 3:43 PM
To: "uport...@apereo.org" <uport...@apereo.org>
Subject: Re: [uportal-dev] Can we override uPortal project .jsp files in the uPortal-start project?
 
Yep! You simply toss the jsp in overlays/uPortal/src/main/webapp/WEB-INF/jsp/Invoker and ./gradlew overlays:uPortal:tomcatDeploy to redepoly. Hope this helps!
- Jonathan
On 8/14/18 2:33 PM, Lauren Anderson wrote:
I’ve made a couple modifications to the icons in the uPortal header which are in greeting.jsp and logout.jsp in the uPortal project. They are in the directory uPortal-webapp/src/main/webapp/WEB-INF/jsp/Invoker/.
 
Is it possible to do this in the uPortal-start project instead?
 
Lauren
-- 
You received this message because you are subscribed to the Google Groups "uPortal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-dev/.
-- 
You received this message because you are subscribed to the Google Groups "uPortal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-dev/.

Jonathan M. Tran

unread,
Aug 15, 2018, 10:17:21 AM8/15/18
to uport...@apereo.org

We should probably document the many things that can be overridden and customized so others won’t have to ask the same questions. Or simply explain how files can be put in similarly-named directories in uPortal-start/overlays/uPortal and they will override the ones in the uPortal project. Maybe put this in the README.md of the uPortal-start project? Or in the uPortal wiki? Or both? I’d be happy to write this up if others agree.

+1. I had this same thought while doing our upgrade to uPortal 5, but work caught up to me


- Jonathan

Lauren Anderson

unread,
Aug 15, 2018, 12:03:28 PM8/15/18
to Jim Helwig, uport...@apereo.org

I know how to create a pull request for the uPortal-start README.md on GitHub. How do I contribute documentation to the uPortal Manual on jasig.github.io?

 

Lauren

Christian Murphy

unread,
Aug 15, 2018, 3:47:09 PM8/15/18
to uport...@apereo.org
The uPortal manual is automatically generated from the markdown files in the docs/ folder of uPortal.

Best Regards,

Christian Murphy
Reply all
Reply to author
Forward
0 new messages