BeaconCMS / BeaconCMS/beacon_live_admin
Page Variants: Add option to render a specific variant via query param
Open
area:cro
enhancement
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
One idea which came up during the original conversation with Brian around the page variants feature:
If we want to force a page to use a specific variant, we could pass a query param to specify which one.
So for example if a page deployed at mysite.com/blog has a variant named "featured_on_top" then one could force rendering that specific variant by visiting mysite.com/blog?variant=featured_on_top
See https://github.com/BeaconCMS/beacon/blob/cbe3bf7445cc559c96310593105e710366ed2cea/lib/beacon/template.ex#L63-L69
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.