uPortal IRC Logs-2012-09-12
[14:35:28 CDT(-0500)] <b-cause> Hello uPortal devs. The rich configuration mode in up4.0.5 has 5 inputs for the custom headers section. Do you know how I can add inputs for more custom headers?
[14:35:39 CDT(-0500)] <b-cause> this is for the WebProxyPortlet
[14:35:59 CDT(-0500)] <EricDalquist> you would need to edit the xml portlet definition
[14:36:06 CDT(-0500)] <EricDalquist> so create the base portlet
[14:36:08 CDT(-0500)] <EricDalquist> export it
[14:36:12 CDT(-0500)] <EricDalquist> modify the preferences
[14:36:14 CDT(-0500)] <EricDalquist> import it
[14:37:08 CDT(-0500)] <b-cause> ok. so that will update the available preferences? this isn't the portlet.xml your talking about?
[14:37:46 CDT(-0500)] <EricDalquist> this is not
[14:37:57 CDT(-0500)] <EricDalquist> this is the data import/export file for that portlet
[14:38:00 CDT(-0500)] <b-cause> so I'll use the Import Portlet Entities portlet to expor it
[14:38:31 CDT(-0500)] <b-cause> modify the file then use the same portlet to import it.
[14:38:38 CDT(-0500)] <EricDalquist> yup
[14:38:51 CDT(-0500)] <b-cause> great. I'll give that a shot. thanks EricDalquist
[15:04:15 CDT(-0500)] <b-cause> hi EricDalquist. that export tool in 4.0.5 asks for an ID of the portlet you want to export, is that the PORTLET_DEF_ID from the database, or is it something I can pull in from another location?
[15:04:23 CDT(-0500)] <EricDalquist> fname
[15:04:28 CDT(-0500)] <b-cause> ok thanks.
[15:46:21 CDT(-0500)] <b-cause> Hi EricDalquist. So I was able to export a portlet definition for the webProxyPortlet and manually add some header names and values. I can see them in the summary view of the portlet, but when I go to the rich configuration edit mode, the interface goes back down to just the 5 available slots.
[15:46:30 CDT(-0500)] <EricDalquist> yup
[15:46:38 CDT(-0500)] <b-cause> Is there maybe another template or config file I could edit?
[15:46:39 CDT(-0500)] <EricDalquist> you'll need to forgo the rich config for this portlet
[15:46:51 CDT(-0500)] <EricDalquist> you'd have to modify the web proxy portlet source code
[15:47:19 CDT(-0500)] <b-cause> well I do bulid that portlet as an overlay so adjusting the source code won't be too much of an issue.
[15:47:40 CDT(-0500)] <b-cause> do you know the ballpark of what files need to be adjusted?
[15:47:49 CDT(-0500)] <b-cause> I think I have seen these xml files before
[15:48:01 CDT(-0500)] <EricDalquist> it is in JSPs
[15:48:09 CDT(-0500)] <b-cause> oh right.
[15:48:15 CDT(-0500)] <EricDalquist> you need to find the .jsp file the portlet renders for that page of the config mode
[15:48:16 CDT(-0500)] <EricDalquist> and modify it
[15:48:21 CDT(-0500)] <b-cause> I don't mind editing that and redeploying
[15:48:57 CDT(-0500)] <b-cause> thanks for the tip. were starting to use that portlet more heavily and I forsee us wanting to pass through any number of headers. thanks for your help
[15:50:14 CDT(-0500)] <EricDalquist> yup