Editing Templates
Editing Twig templates in the admin panel, syntax highlighting, live preview.
Editing Templates
Built-in editor with syntax highlighting and an AI assistant.
How to Open
- Admin → Templates
- Select a template from the list
- Edit the code
AI Assistant
Click the «AI» button in the editor. Describe what you need:
"Make product cards from the products table: photo, name, price, a 'Buy' button"
AI generates the code. Click «Insert into Editor».
Creating a New Template
- Templates → «Create Template»
- Enter a name:
catalog.html.twig - Write the code
- Save
Hotkeys
| Keys | Action |
|---|---|
Ctrl+S |
Save |
Ctrl+F |
Search |
Ctrl+/ |
Comment line |
After Saving
Changes apply immediately. If you don't see them — clear the cache: Admin → Cache → Clear.