Or, do you mean when using the UI to add a portlet? I'm a bit foggy as to which approach you mean.
On Mon, Nov 14, 2011 at 1:28 PM, Bruce Tong <[email protected]> wrote: > You mean something like this? (See near the bottom of the XML.) > > <channel-definition > script="classpath://org/jasig/portal/io/import-channel_v3-1.crn"> > <title>Scalia Labs Webcam</title> > <name>Scalia Labs Webcam</name> > <fname>webcam-scalia</fname> > > <desc>Webcam for Scalia Labs > looking South from Clippinger Labs toward the Ping Center.</desc> > <type>Image</type> > > > <class>org.jasig.portal.channels.portlet.CSpringPortletAdaptor</class> > > <timeout>30000</timeout> > > <hasedit>N</hasedit> > > <hashelp>N</hashelp> > > <hasabout>N</hasabout> > > > <secure>N</secure> > > <locale>en_US</locale> > > <categories> > > > <category>Entertainment</category> > </categories> > <groups> > <group>Everyone</group> > </groups> > <parameters> > <parameter> > <name>isFrameworkPortlet</name> > <value>true</value> > <description/> > <ovrd>N</ovrd> > </parameter> > <parameter> > <name>portletName</name> > <value>Image</value> > <description/> > <ovrd>N</ovrd> > </parameter> > <parameter> > <name>disableDynamicTitle</name> > <value>true</value> > <description/> > <ovrd>N</ovrd> > </parameter> > </parameters> > <portletPreferences> > <portletPreference> > <name>img-border</name> > <values><value>2</value></values> > </portletPreference> > <portletPreference> > <name>img-height</name> > <values><value>240</value></values> > </portletPreference> > <portletPreference> > <name>img-link</name> > <values><value>http://www.scalialab.com/</value></values> > </portletPreference> > <portletPreference> > <name>img-uri</name> > > <values><value>http://scaliacam.phy.ohiou.edu/axis-cgi/mjpg/video.cgi?camera=&resolution=352x240</value></values> > </portletPreference> > <portletPreference> > <name>img-width</name> > <values><value>352</value></values> > </portletPreference> > </portletPreferences> > </channel-definition> > > > On Mon, Nov 14, 2011 at 12:10 PM, tomit <[email protected]> wrote: >> Hi! >> >> Can anyone please explain me, how I can specify portlet preferences when >> adding a new portlet to the system? I know I can set portlet preferences >> within portlet.xml file, but i would like to be able to specify certain >> parameters while adding a new portlet to the system. >> Example of what I am trying to accomplish is the Image type portlet >> available with uPortal quickstart installation (when adding a new portlet of >> type Image, you can set image url, with and height of the image). >> >> Tnx > > -- > Bruce Tong > Software Engineer > Office of Information Technology > Ohio University > -- Bruce Tong Software Engineer Office of Information Technology Ohio University -- 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
