Open StudioZut opened 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.
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.
Podcasts = embeds right now (not content type) Media item for podcasts
Add another CK Editor option (in embed) for future content editors
Answer - let's make a ckeditor template to quickly add the links in the WYSIWYG.
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
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:
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
Looks good @mariacha !
Add options to podcast pages for "listen on..." like this https://www.wri.org/podcasts/podcast-series-turning-clean-energy-asia
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
wri_sites
profile. You can throw them into thewri_data
module.