Hi, I don't know if this is applicable as it's for an older version of uPortal (2.5.3), but we found it very useful and is maybe worth looking into.
We were inspired by Virginia Tech's implementation, where they simplified the work of building URLs in a JSP-script. You can find their work at: https://wiki.jasig.org/display/UPC/Porting+My+VT+theme+to +uPortal+2.5.2 (webpages/navigate.jsp) But we wanted the URLs to be even cleaner and made a servlet instead. We also added a feature to be able to pass parameters to the channel. You can find the code for it here: http://beskes.hgo.se/~joacimb/code/uPortal/navigate/NavigateServlet.java Our servlet is defined in web.xml like this: <servlet> <servlet-name>Navigate</servlet-name> <servlet-class>se.hgo.portal.NavigateServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Navigate</servlet-name> <url-pattern>/navigate/*</url-pattern> </servlet-mapping> For activating a channel and passing parameters to it you could use the following. I guess the results will vary depending on what layout-manager and theme you are using. https://uportal.example.com/navigate/tab/page/channel?parameter=flepp For just activating a specific tab and page: https://uportal.example.com/navigate/tools/settings For activating a specific tab: https://uportal.example.com/navigate/welcome The downside by using this is that this generates a lot of redirects. Regards, Joacim Breiler On Mon, 2011-01-10 at 08:52 -0600, Sampson, Tylor B wrote: > Jacob, > > After you set up the external_id_name, > Construct the link like this: > /uPortal/render.userLayoutRootNode.uP?uP_root=root&uP_sparam=activeTab&activeTab=external_id_name > > Hope this helps, > Tylor B. Sampson > Sr. Programmer Analyst, ITS > University of South Dakota > > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Jacob Lichner > Sent: Wednesday, January 05, 2011 5:27 PM > To: [email protected] > Subject: [uportal-dev] Persistent Tab URLs > > Hi, my name is Jacob, I work on the User Experience Team at Unicon. I'm > running uPortal 3.2 and my question is regarding tab URL's. The default URL > is constructed based on the current tab position and if the tab position > changes, the URL changes. How do I get tab URLs that don't change? I'm aware > of the external identifier field, but I'm not sure how to then construct the > new URL based on that. I have tried setting activeTab=external_id_name but > that seems to be broken (it defaults to the first tab). > > Thanks for your help! > > -- > 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 -- 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
