portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Christopher <j...@animalsinneed.net>
Subject Re: Category filtering addition
Date Mon, 10 Mar 2003 02:23:18 GMT
sorry, I didn't include the template I changed.

On Saturday 08 March 2003 18:32, John Christopher wrote:
> Hi,
> I implemented some changes to the way the category drop down list is
> displayed when selecting portlets to add. In my implementation, the drop
> down list only shows the first word of all the categories at first, and
> then once a category is selected, the list only shows; All Portlets, the
> parent category clicked(ie news), and all children categories of that
> parent(ie
> news.technology etc...). This helps with sites that do or plan on having
> numerous portlets. Attached are the files changed and below is a list of
> what was changed. Could this possibly be added to the distribution?
> Thanks,
> John
> org.apache.jetspeed.om.registry.base
> BaseCategory.java - implemented Comparable - using the name to compare
> org.apache.jetspeed.modules.actions.portlets
> CustomizeSetAction.java - added two protected methods getCategoryParents
> and getCategoryLists. These filter the parent category names out of the
> original category list and creates a map of the parent name to child list
> which is added to the context.
> WEB-INF\templates\vm\portlets\html\
> customizer-portletset-add.vm - changed to use the map of category lists and
> update the list depending on which category the user clicks.

View raw message