Open ridoo opened 1 week ago
Is possible via Admin configuration: https://docs.geonode.org/en/4.2.5/admin/admin_panel/index.html#menus-items-and-placeholders
One clarification I would need here is that, whether the list of subsites available on the click of the SUBSITE tab will be automatically populated when a subsite is configured or it has to be done manually in the tab settings ?
@vineetasharma105 The referenced documentation points to how menu items can be created via admin in general. There is no automatic creation of such items/subitems once a new subsite is created. So this is manual configuration.
EDIT: @vineetasharma105 Actually, the documentation states the following:
The homepage of geonode, with the subsite enabled, has a different look and feel compared to the default installation.
Therefore, I digged a bit deeper: There is a subsite_get_base_left_topbar_menu
template tag available for the subsite's _geonode_config.html
. Will have to investigate why this is not applied. However, the documentation further states:
Instead of displaying the catalog on the homepage, a list of configured subsites is displayed.
As far as I understand this would list all subsites instead of the catalogue. I guess, this is not what you want, right?
As far as I understand this would list all subsites instead of the catalogue. I guess, this is not what you want, right?
Yes, we do not want that behaviour.
@gannebamm here is the look of the subsite with a manually added menu. It allows to switch between the Holisoils subsite and back. It wasn't hard to add and if we decide to keep this solution I'll just document the few extra steps needed when setting up the subsite.
I opted to add two items (Holisoils and GeoNode home) because with just one, the menu button is displayd not as "Subsites"|, but as just "Holisoils". Aalso, right now it's the only link back to the GeoNode home s.t. it easy to swtch between them.
The menu looks exactly the same both from the main portal and from the subsite. (the changes are local for now)
@gannebamm @VeraZimt Do you have an opinion on this?
Options:
I would use Option C as seen here: https://geonode-demo.thuenen.de/holisoils/#/
As shown and highlighted in the red box, a tab named 'Subsites' can be added to the ATLAS-Geonode homepage. This tab on click should:
Currently, the list populated on the click of tab-SUBSITES will have only one subsite. The mouse hover text : {Holisoils} and the url : {https://geonode-demo.thuenen.de/holisoils/#/}
This screenshot has been added from https://docs.geonode.org/en/4.2.5/advanced/contrib/subsites/index.html#installation