[opencms-dev] Image Gallery problem with too many galleries

Jorge González informatico at hotelparadisepark.com
Tue Jun 7 11:07:25 CEST 2005


Hi list:

It was a suspect, now it's a reality.

The image gallery (very nice combined with the xmlcontent gallery widget)
has a problem. If you have lots of galleries (+500) and you try to upload
one file into one of the galleries, the loading of ALL the galleries to
include them in the selection list on top of the gallery window slows down
the page a lot (minutes).

I think it would be nice to have a parameter in the widget declaration to
fix the gallery search to a certain content subtree or a configurable
relative folder.

So you could have

----

			<layouts>
				<layout element="gallery" widget="ImageGalleryWidget"
relativeFolder="gallery1"/>
				<layout element="gallery2" widget="ImageGalleryWidget"
searchOnlySubtree="true"/>
			</layouts>
----

I would like also to develop it, can you point me to the right direction ?

I need to
- add a new parameter to the widget
- pass the parameter to te gallery on load
- modify the gallery to check this param and search only the selected
resources




More information about the opencms-dev mailing list