Getting Started
This guide introduces the fundamentals of building a template in Prodyflow.
A template controls how your shop looks and behaves, including layouts, pages, blocks, assets and logic.
π Template Structure Overviewβ
A Prodyflow template has the following structure:
root folder
ββ config.json
ββ blocks.json
ββ layout
β ββ theme.twig
β ββ head.twig
β ββ ... (additional layout files if needed)
ββ pages
β ββ list.twig
β ββ page.twig
β ββ product.twig
β ββ bundle.twig
ββ sections
β ββ Your sections twig files
ββ css
β ββ Your CSS/SCSS files
ββ js
β ββ Your JS files
ββ assets
ββ Your assets (fonts, icons, images, etc.)
π§ What Each Folder Doesβ
| File / Folder | Purpose |
|---|---|
config.json | Global template configuration (colors, typography, settings, data variables) |
blocks.json | Describes content blocks available in the template / block editor and their settings |
layout/ | Base structure for all pages (header, footer, head, wrapping layout) |
pages/ | Page-specific Twig templates for dynamic pages (product page, category listing, static page, bundle page) |
sections/ | Reusable components inserted into layouts/pages, available in the block editor (hero banners, sliders, product grids, etc.) |
css/ | Template styles (SCSS recommended) |
js/ | Interactive behavior and custom logic |
assets/ | Fonts, images, icons, SVGs, etc. |
Used technologiesβ
The Prodyflow webshop platform is built using modern, reliable, and maintainable technologies to ensure performance, scalability, and ease of customization. These technologies allow developers to create responsive designs, manage dynamic content, and extend the webshop functionality efficiently.
- Sass β A powerful CSS preprocessor that enables the use of variables, nested rules, mixins, and functions, making stylesheet management more maintainable and modular.
- Pure CSS β A minimal and responsive CSS framework used for core layout and components, ensuring consistent styling across blocks and pages.
- Twig β A flexible and secure templating engine that separates logic and presentation, enabling dynamic page rendering and reusable templates.
Before starting development or customizing a Prodyflow webshop, itβs recommended to familiarize yourself with the following technologies. Understanding them will help you work more efficiently with the platform, manage templates, and style content effectively.
π First Stepsβ
-
Create the template folder
- Use the structure above
- Start with minimal files:
config.jsonlayout/theme.twigpages/page.twig
-
Edit
config.json- Set template name
- Add default colors, fonts, and settings
-
Set up
theme.twig- Add global page layout structure:
<html>,<body>- main content block
- footer, scripts, style includes
- Add global page layout structure:
-
Build your first page
- Example: product page or homepage
-
Add sections
- Create reusable UI blocks (hero, banner, product carousel, etc.)
-
Style with SCSS
- Import partials
- Keep files modular (e.g.,
_buttons.scss,_layout.scss,_utils.scss)
-
Add JS
- Optional behavior for sliders, dropdowns, events, etc.
β Best Practicesβ
- Keep layout files minimal β use
sections/for reusable components - Use a file just for the variables (
variables.scss) - Keep JS modular β one responsibility per file
- Store static media in
assets/(SVG, logos, icons, backgrounds)
You now have the foundation to begin building a fully customizable Prodyflow template.
Next topic: Config