NCEAS / metacatui-themes

Themes for MetacatUI repositories
1 stars 0 forks source link

Configure the SCTLD theme to use portal pages as the main repo pages #1

Closed robyngit closed 1 year ago

robyngit commented 1 year ago

Experiment with using a portal as the main content for a theme. This allows the repo owners to have direct control over their content (through the portal editor). We'll need to ensure that there is still access to the button to submit data, and we may also want to keep a link to the "support" page.

robyngit commented 1 year ago

We'll also need to consider how to show the dataset landing pages

robyngit commented 1 year ago

Technically, it is feasible to use a portal as the main content for a theme, allowing repo owners to have direct control over their content through the portal editor. There are some limitations: the search functionality on the main page does not work as expected. When searching for a term entered on the homepage, it redirects to the portal search but does not perform the search with the entered term.

To implement this solution, several changes are needed, including overwriting quite a few CSS rules to maintain the full navbar instead of the minimal navbar typically displayed on portal pages.

Code changes required for an example implementation can be viewed in this comparison: https://github.com/NCEAS/metacatui-themes/compare/prototype-1-sctld-portal-page

A live demo of the SCTLD implementation is available at: http://sctld.test.dataone.org/