alleyinteractive / apple-news

The Publish to Apple News plugin enables your WordPress blog content to be published to your Apple News channel.
https://wordpress.org/plugins/publish-to-apple-news/
GNU General Public License v3.0
153 stars 71 forks source link

Add Support for Aside Subcomponents #1126

Closed kevinfodness closed 4 months ago

kevinfodness commented 4 months ago

Description

With the addition of the new Aside functionality in v2.5.0 (currently in beta) it would be nice to be able to have different styles and layouts for components that are included within an aside, instead of (for example) having the same heading style in the main article and the aside. We can enable this by adding support for subcomponents within components via Customize JSON, where we add a third dropdown (after theme and component) where the interface lets you decide whether you want to customize the component itself (e.g., Aside) or a subcomponent (e.g., a Heading inside of an Aside). If custom JSON is available for a subcomponent, it should be used instead of the primary JSON for the component if it is located within a parent component.

Use Case

When a user incorporates an aside into their Apple News article, they should be able to customize the appearance of components inside of the aside without writing PHP code.