PRX / cms.theworld.org

Wordpress CMS for The World
Apache License 2.0
0 stars 2 forks source link

10: Create Call To Actions plugin #139

Closed rpeterman-gp closed 1 year ago

rpeterman-gp commented 1 year ago

Closes #10

To Review

...then...

fragment CtaRegionProps on CtaRegion { id title slug ctaRegionContent { callToActions { ... CtaProps } } }

fragment CtaProps on CallToAction { ctaOptions { ctaType content { heading message } actions { actionButtonLabel actionButtonUrl dismissButtonLabel } optInSettings { optInText } newsletterSettings { newsletter { ... on Newsletter { id title newsletterOptions { buttonLabel listId optInText } } } } } ctaSettings { cookieLifespan } ctaTargeting { targetCategories { id name } targetPrograms { id name } targetContent { ... on Post { id title } ... on Episode { id title } } } }


- [x] Run the query.
- [x] Ensure the data for CTA's you added is retrieved. The query should first list the first 10 CTA's, then the CTA's in the `site-banner` region, then the regions tagged as the `site` type and it's CTA's .
- [x] Edit a term in each major taxonomy other than _CTA Region Types_ and ensure the **Landing Page** and **Taxonomy Images** field groups are shown.