Palette CMS Content Sync
NOTE: This extension only works for Palette CMS.
日本語はこちら
Overview
Edit and synchronize web contents in Palette CMS for VS Code.
Setup
- Open Palette CMS and log in as administrator.
- Go to
コンテンツカテゴリ
page from system preferences.
- Click
ZIPダウンロード
button to download ZIP archive.
- Extract downloaded ZIP archive.
- Open folder with VS Code.
Adjusting the extension position
VS Code can freely change the display position of extensions.
Drag Palette CMS Content Sync extension icon from the left sidebar to the desired position.
Move it to the right side of the window to see the file browser and content settings at the same time.
Usage
- Open Palette CMS Content Sync panel from side bar.
Preview
- Click
プレビュー
button from the toolbar.
- The preview automatically switches according to the opened HTML file.
- When you save a file, it is immediately reflected in the preview.
Insert content variables
- Open downloaded HTML code.
- Type
[
key to get variable suggestions.
Configure content settings
- Open HTML code or
contents.json
then you can see content settings in Palette CMS Content Sync panel.
- It automatically saves in
contents.json
when you change the settings.
✅ At this time, your settings has not yet been uploaded to the server and can be safely changed.
Upload
- Open any HTML code or
contents.json
.
- Click
アップロード
button from the toolbar.
- If the upload is successful, the server will reflect the settings and HTML.
If there are some errors in your settings, an error dialog will be displayed.
Download
- Open any HTML code or
contents.json
.
- Click
ダウンロード
button from the toolbar.
- Local settings are overwritten by server data.
⚠️ If you do not upload the changed settings, it will be lost.
Create new content
- Click
新規作成
button from the toolbar.
✅ After uploading content, empty source code files are automatically generated.
✅ System ID and some other columns are automatically generated on the server side and they will be applied into contents.json
.
Duplicate a content
- Click
複製
button from the toolbar.
Delete a content
- Click
削除
button from the toolbar.
⚠️ Server side data will be permanently deleted.
✅ If you want to delete only local data, please delete from the file browser.
Change a folder name
- When you click
フォルダ名を更新
button from the toolbar, it will be renamed by content id.
✅ You can change names anything you want even Japanese names.
Change extensions
- If you want to change all extentions at once, please click
拡張子を変更
button from the toolbar.
✅ This function makes it easy to change the all extentions, after changing HTTPヘッダー|Content-Type
.
Reget content variable definitions
- Click
コンテンツ変数を再取得
button from the toolbar to download content variable's definitions.
✅ When you add the new optional columns on Palette CMS, the content variable's definitions should be reget.
✅ It is also reget when downloading content.
Reget all other definitions
- Click
コンテンツ変数を再取得
button from the toolbar to download all other definitions.
✅ When you add new sheets on Palette CMS, all other definitions should be reget.