Regenerate JSON files after CSV changes
Regenerates JSON files from updated CSV content to refresh CMS data.
/plugin marketplace add gutitrombotto/webflow-to-self-served-page/plugin install webflow-to-self-served-page@webflow-pluginsoptional-csv-filenameRegenerate JSON files after CSV content has been updated.
Target CSV: $ARGUMENTS (if provided, otherwise process all CSV files)
Check that CSV files exist:
.csv filesCheck that scripts/csv-to-json.py exists.
If not found, suggest running /webflow-convert first for initial setup.
Execute the CSV to JSON converter:
python3 scripts/csv-to-json.py
ā»ļø CSV Update Complete
š Results:
- CSV files processed: X
- JSON files updated: X
- Total items: X
š Updated Files:
- data/cms-collection1.json (X items)
- data/cms-collection2.json (X items)
...
ā
Changes Applied:
Your static page will now display the updated content.
š Preview Changes:
Run '/webflow-preview' to see the updates in your browser.
š” Tip: Hard refresh (Ctrl+F5) to clear browser cache.
Ask user if they want to start/restart the preview server to see changes immediately.
/webflow-update testimonials.csv
Only regenerates cms-testimonials.json
/webflow-update
Regenerates all JSON files
If a new CSV file is detected that doesn't have a corresponding JSON:
š New Collection Detected: new-collection.csv
This CSV wasn't in the original conversion.
Would you like to:
1. Run full conversion (/webflow-convert) to integrate it
2. Just generate JSON for now
3. Skip this file
Recommendation: Run /webflow-convert to ensure CMS loader supports this collection.
Performance Note: This is much faster than /webflow-convert since it only regenerates JSON, not the entire conversion.