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 22 hours ago

ridoo commented 22 hours 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 22 hours 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 21 hours 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 19 hours 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 to avoid, right?