I updated https://wiki.jasig.org/display/PLT/Jasig+Widget+Portlets+Configuration+and+Installation with more detail. Perhaps it will be more clear.
James Wennmacher - Unicon 480.558.2420 On 07/08/2014 09:42 AM, Drew Wills wrote: > Susan, > > IMHO you’re better off not messing with the source code (you shouldn’t > need to). The jasig-widget-portlets project is already a part of the > uPortal distribution. > > You can define that JSP name in the Portlet Manager. Use the > “Preferences” screen to set the value you want — ‘/MCLogo/' > > drew > > > On Jul 8, 2014, at 9:23 AM, Susan McCarthy > <[email protected] > <mailto:[email protected]>> wrote: > >> Hi, >> >> I followed the directions for option 1 and I am still having trouble. >> I downloaded the JasigWidgetPortlets source code from gitHub and >> merged it into my main uPortal directory. I added a custom JSP page >> to uportal-portlets-overlay/src/main/webapp/WEB-INF/jsp just as the >> instructions explained. I was not sure exactly what to do in regards >> to configuring the SimpleJspPortletController.jspName portlet >> preference. I assumed I needed to change a few lines in the file >> SimpleJspPortletController.java. I based my changes off the >> instructions from this link >> https://wiki.jasig.org/display/PLT/Portlet+Preferences. Currently, in >> the .java file I changed the line /public static final String >> INSTRUCTIONS_VIEW = "simple-jsp-instructions";/ to /public static >> final String MCLOGO_VIEW = "MCLogo";/ since "MCLogo" is the name of >> the JSP page I added in the jsp directory as I stated above. I also >> changed the line/jspName = prefs.getValue(JSP_NAME_PREFERENCE, >> INSTRUCTIONS_VIEW);/ to /jspName = >> prefs.getValue(JSP_NAME_PREFERENCE, MCLOGO_VIEW);/ . >> >> I was wondering if I needed to add the portlet to the portlet.xml >> file which is located in >> /JasigWidgetPortlets/src/main/webapp/WEB-INF/ and after adding it do >> I now go to the respondr-lo.fragment-layout.xml file and replace >> channel portal-logo with the portlet I created. After that should I >> be manually adding a new file to the portlet-definition folder that >> looks exactly like the portal-logo.portlet-definition.xml file but >> instead of /<ns2:webAppName>/SimpleContentPortlet</ns2:webAppName>/ >> it would be /<ns2:webAppName>/SimpleJSP</ns2:webAppName> /and >> obviously the title and name would be different. Also, should I be >> adding a PortletContext.xml file in >> /JasigWidgetPortlet/src/main/webapp/WEB-INF/context/portlet/ . >> >> I apologize if this is confusing! >> >> Thanks in advance! >> >> Susan McCarthy >> Manhattan College '15 >> >> >> On Thu, Jun 26, 2014 at 1:10 PM, James Wennmacher >> <[email protected] <mailto:[email protected]>> wrote: >> >> There are two ways to do it. >> >> 1. Replace the SimpleContentPortlet that is currently in the >> header-left region with a SimpleJSP portlet from the Jasig >> Widgets Portlets (see >> >> https://wiki.jasig.org/display/PLT/Jasig+Widget+Portlets+Configuration+and+Installation). >> You'd need to modify the >> >> uportal-war/src/main/data/quickstart-entities/fragment-layout/respondr-lo.fragment-layout.xml >> to replace the channel portal-logo with the portlet you create >> (you can create it in the UI using Manage Portlets and export the >> channel definition and save it into the >> uportal-war/src/main/data/quickstart-entities/portlet-definition >> folder). This approach is easiest in terms of keeping it simple >> and not relying on any data in the database. >> >> 2. Using the SimpleContentPortlet that is already published, you >> can use its WYSIWYG editor to upload the logo and include it in >> the portal-logo's content. This approach saves the logo in the >> attachments table in the database. There is currently not an >> easy way to move that data between environments or to include it >> in an ant initportal so I generally recommend approach #1. >> However for simple experimentation on getting the logo on the >> page, this way works. >> >> James Wennmacher - Unicon >> 480.558.2420 <tel:480.558.2420> >> >> On 06/26/2014 09:20 AM, Susan McCarthy wrote: >>> Hi, >>> >>> I am new to uPortal and I am experimenting with the new respondr >>> theme. I would like to include a logo image instead of text in >>> the header. Can someone point me in the right direction as to >>> how to do this correctly. Thanks in advance! >>> >>> Susan McCarthy >>> Manhattan College '15 >>> -- >>> >>> You are currently subscribed [email protected] >>> <mailto:[email protected]> as:[email protected] >>> <mailto:[email protected]> >>> To unsubscribe, change settings or access archives, >>> seehttp://www.ja-sig.org/wiki/display/JSG/uportal-dev >> >> -- >> >> You are currently subscribed [email protected] >> <mailto:[email protected]> as:[email protected] >> <mailto:[email protected]> >> >> To unsubscribe, change settings or access archives, >> seehttp://www.ja-sig.org/wiki/display/JSG/uportal-dev >> >> >> -- >> >> You are currently subscribed [email protected] >> <mailto:[email protected]> as:[email protected] >> <mailto:[email protected]> >> To unsubscribe, change settings or access archives, >> seehttp://www.ja-sig.org/wiki/display/JSG/uportal-dev > > -- > > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/uportal-dev -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-dev
