Hi Andreas, > I'm working on the project http://easysearch.mozdev.org and I have a > big problem that I don't know how to solve. > There are two versions of the application today. One that works as a > stand-alone toolbar and one that is integrated into the personal > toolbar. > The only difference between them is the file easysearchOverlay.xul > (the main XUL file). > This XUL filename is defined in content.rdf (in my jar file) and in > chrome/overlayinfo/navigator/content/overlays.rdf. > Do you know some way I could either change the filename that is > defined in the RDF files so I could name each version to: > e_easysearchOverlay.xul and p_easysearchOverlay.xul depending on what > the user wants. > > Or do you know some other way I could change the entire contents in > the main XUL file in my jar.
Apologies for the delay in the response. My best guess is that you could register both overlays, include them both, and use some script to change the id or class of the toolbar that you are including. Just put a different identifier on the root element of each overlay. There is probably a more elegant way of doing this, so am copying the relevant newsgroup. - Brian
