Programatically configuring eea.facetednavigation

Hello,

I am developing a Plone addon that will rely on eea.facetednavigation. I'd like to configure the faceted search page in a import step for my GS profile.

I found no documentation on that. Does anyone has a lead or an example?

Thanks.

What do you want to do to the search page?

Just pre-configure some widgets (tag cloud for tags, a location widget, removing the default portal type widget), etc.

Im guessing you'll have to use the methods on the faceted search page class or view.

If you want that all your new Faceted Navigable to have a certain configuration you can define a custom browser view called default_widgets.xml (for=".interfaces.IMyCustomContentType"). See https://github.com/collective/eea.facetednavigation/blob/master/eea/facetednavigation/browser/configure.zcml#L133

For a GenericSetup integration example see eea.relations: https://github.com/collective/eea.relations/blob/master/eea/relations/docs/exportimport.txt

Also check: https://github.com/collective/eea.facetednavigation/blob/master/eea/facetednavigation/docs/exportimport.txt