Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider template JSON files in a theme folder for portability and fast access #123

Open
eliot-akira opened this issue Jul 15, 2024 · 0 comments

Comments

@eliot-akira
Copy link
Contributor

eliot-akira commented Jul 15, 2024

As suggested by Phil Rips in the forums: How to sync L&L files across multiple domains. The idea is to pre-parse templates into JSON files in a theme folder at "compile" time (on save).

If L&L wanted to simplify the migration of templates to other websites/domains, the team could implement something similar to the Local JSON feature for ACF.

Local JSON is a helpful feature which saves field groups, post types, taxonomies, and option pages as JSON files within your theme. The idea is similar to caching, and both dramatically speeds up ACF and allows for version control over your field settings!

All .json files within the acf-json folder are loaded during ACF’s initialization procedure.

Advanced Custom Fields: Local JSON

@eliot-akira eliot-akira changed the title Consider templates folder or template.json in parent/child theme to load for fast access Consider templates folder or JSON files in parent/child theme to load for fast access Jul 15, 2024
@eliot-akira eliot-akira changed the title Consider templates folder or JSON files in parent/child theme to load for fast access Consider template JSON files in parent/child theme to load for fast access Jul 15, 2024
@eliot-akira eliot-akira changed the title Consider template JSON files in parent/child theme to load for fast access Consider template JSON files in parent/child theme for portability and fast access Jul 15, 2024
@eliot-akira eliot-akira changed the title Consider template JSON files in parent/child theme for portability and fast access Consider template JSON files in a theme folder for portability and fast access Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant