[Building Sakai] Overriding complex type in sakai.properties

Steve Swinsburg steve.swinsburg at gmail.com
Sat Jun 30 01:48:10 PDT 2012


This looks similar to what I did in 
https://jira.sakaiproject.org/browse/SAK-21406

Where you can set an arbitrary number of properties, and then set additional properties that match those properties in the key name. So with two more properties for each of the first properties, image and link, you'd have this done.

user.additional.attribute.count=2
user.additional.attribute.1=college
user.additional.attribute.2=room

user.additional.attribute.display.college=College
user.additional.attribute.display.room=Room No

The tool needs to specifically look at sakai.properties though, and it's no bean override, but it gets the job done.

Cheers,
Steve


Sent from my iPad

On 30/06/2012, at 5:49, Matthew Jones <matthew at longsight.com> wrote:

> There is already a sakai property "bottomnav" that displays the links on the gateway page
> bottomnav.count = 2
> bottomnav.1 = <a href="https://localhost/portal/site/!gateway">Gateway</a>
> bottomnav.2 = <a href="http://www.sakaiproject.org/" target="_blank">The Sakai Project</a>
> 
> What you're doing does look similar, but yea, super complicated.
> 
> On Fri, Jun 29, 2012 at 3:39 PM, Aaron Zeckoski <azeckoski at unicon.net> wrote:
> Maybe it is better to just let people set a chunk of html. This really
> seems overly complex to me.
> 
> -AZ
> 
> 
> On Fri, Jun 29, 2012 at 3:35 PM, Patrick Haggood <phaggood at umich.edu> wrote:
> > Was using map because the number of entires is variable; below I have four
> > (gmail, calendar, docs, gplus) but this list could get larger.  With the map
> > my backing bean simply checks if portalLinks.size() = 0 which signals tht
> > the link dropdown is not shown.  The existing map in my components is thus:
> >
> >       <property name="portalLinks">
> >       <map>
> >       <entry key="gmail">
> > <map>
> > <entry key="label" value="GMail"/>
> > <entry key="image" value="images/email.png"/>
> > <entry key="link" value="http://email.umich.edu"/>
> > </map>
> > </entry>
> >       <entry key="calendar">
> > <map>
> > <entry key="label" value="Calendar"/>
> > <entry key="image" value="images/calendar.png"/>
> > <entry key="link" value="http://calendar.umich.edu"/>
> > </map>
> > </entry>
> >       <entry key="docs">
> > <map>
> > <entry key="label" value="Docs"/>
> > <entry key="image" value="images/docs.png"/>
> > <entry key="link" value="http://docs.umich.edu"/>
> > </map>
> > </entry>
> >       <entry key="gplus">
> > <map>
> > <entry key="label" value="Google+"/>
> > <entry key="image" value="images/gplus.png"/>
> > <entry key="link" value="http://gplus.umich.edu"/>
> > </map>
> > </entry>
> > </map>
> >       </property>
> >
> >
> >
> 
> 
> 
> --
> Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120630/28b773a5/attachment.html 


More information about the sakai-dev mailing list