Thuenen-GeoNode-Development / thuenen_atlas

The Thünen Atlas GeoNode project
2 stars 1 forks source link

List all Subsites from main site #57

Open ridoo opened 1 week ago

ridoo commented 1 week ago

Subsite_tab_Homepage 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:

  1. List of the subsites configured in that geonode version
  2. Each text of the 'names' in the list of the subsites should also have the link to the subsite, where user can click and the subsite opens in a new tab.

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

gannebamm commented 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

vineetasharma105 commented 1 week ago

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 ?

ridoo commented 1 week ago

@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?

gannebamm commented 1 week ago

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.

kilichenko-pixida commented 1 week ago

@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) 1

ridoo commented 2 days ago

@gannebamm @VeraZimt Do you have an opinion on this?

Options:

gannebamm commented 2 days ago

I would use Option C as seen here: https://geonode-demo.thuenen.de/holisoils/#/