Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programme page makeover #1873

Open
dnoesgaard opened this issue Aug 7, 2023 · 2 comments
Open

Programme page makeover #1873

dnoesgaard opened this issue Aug 7, 2023 · 2 comments
Assignees

Comments

@dnoesgaard
Copy link
Member

We would like to suggest the following changes to the Programme page:

  • addition of Blocks, effectively replacing all current page content except for the "Funded by", which should remain in the bottom (this is also used by projects within the programme)
  • remove tabs (About | News | Events | Projects*)
  • News and Events will be replaced by relevant feature blocks as necessary
  • *make the projects anchor page a new block type, ideally one that takes as arguments 1) the programme and 2) options for somehow controlling the block height. Maybe it can be done using a Custom Component Block? This would allow us to show the projects table alone or within the context of other compositions.

Appreciate your immediate thoughts on the feasibility/cost of the above.

@MortenHofft
Copy link
Member

So making the programme page into a page of type composition.
But with the little difference that is has a fixed funder footer.
And a new block type for displaying projects.

That sounds very doable yes. Perhaps 1-3 days to agree on something and implement it. Assuming I understand it correctly.

Might be the easiest to make funding into a new block type. So it can be used elsewhere as well.

Projects table could either be a block, or a special markdown feature. Something like writing:
GBIF_PROJECT_TABLE | programmeId or such. I would need to experiment with what the best way to attach angular is. In most cases it would be simple, but we have a few places where we load the Contentful data in quirky ways that might prove challenging. This version probably requires a bit more, but we will likely need it for dynamic lists for people anyway (like lists of translators etc.)

Is that very imprecise estimate precise enough?

@dnoesgaard
Copy link
Member Author

Hey, excellent. Our idea is to do as few changes as possible for the desired effect.

Regarding funders: yes I guess we could do a new block type. However, I believe the child projects of the programme (somehow) use this as well. So, for example, BID projects display the same funding info as the BID programme.

I will defer to you on the best/easiest solution for the project table. If it makes sense to do more work so that it can be reused, great, but we are also happy with something that just works for this particular table. My only concern is how/where it should be displayed within the confines of the "new" programme page without the tabs to navigate. This is why is suggested a block that we could somehow control the height of in order to limit the size when having 100s of projects. Open to ideas.

Anyway, let me know if we need to talk to iron out details and/or if you need me to make changes to Contentful. Since we're basically just adding new stuff, I expect we can just use the Contentful prod environment. Otherwise, I think I'll work on copying over the content models we have in PROD to the DEV environment...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants