wri / wri_sites

WRI profile
3 stars 2 forks source link

Add options to podcasts #302

Open StudioZut opened 3 months ago

StudioZut commented 3 months ago

Add options to podcast pages for "listen on..." like this https://www.wri.org/podcasts/podcast-series-turning-clean-energy-asia

Image

This exampled ^ is simple custom code. Let's add fields in the podcast content type for these different services, and then drop them into the page automatically (if they have a value).

Dev tasks

komejo commented 3 months ago

@maria-thinkshout I have some questions about this - I've got the fields / field group added, but I'm stumped about how to add them. We're including the podcast as a media entity in CKEditor, and the current 'listen on' is a markup entity that also gets added in.

Do we currently have a way to add something into CKEditor that pulls info from a node? Also worth noting is that https://www.wri.org/podcasts/podcast-series-turning-clean-energy-asia has not one but two podcasts on the page with 'listen on' groups.

mariacha commented 3 months ago

Ah, so it is. @monicapatel21 Let's discuss this one in the meeting because we may want to do this as a media element instead of as a content type.

monicapatel21 commented 3 months ago

Podcasts = embeds right now (not content type) Media item for podcasts

Add another CK Editor option (in embed) for future content editors

mariacha commented 3 months ago

Answer - let's make a ckeditor template to quickly add the links in the WYSIWYG.

mariacha commented 3 months ago

Ok @komejo we're changing approaches here and turning this into a ckeditor template to make the buttons/links, so no new fields needed. This is ready for you when you need your next task

komejo commented 3 months ago

Done - wri_sites: https://github.com/wri/wri_sites/pull/313 Flagship: https://github.com/wri/wriflagship/pull/1226

Added CKEditor CSS, just update the empty links:

Screenshot 2024-08-29 at 11 50 48 AM


Screenshot 2024-08-29 at 11 42 03 AM

mariacha commented 2 months ago

Ok, this is now a template that can be added within the text. See the last comment for how to add/edit:

https://develop-wriflagship.pantheonsite.io/podcasts/promoting-locally-led-adaptation-climate-action

shannon-paton commented 2 months ago

Looks good @mariacha !