# Campaign pages

**Pagini de campanie** (Campaign pages, *Edits content*) builds pages for campaigns, brands and seasons from data,
without code: rows, each split into one to four columns, each column holding modules.

## Building a page

- **Titlu**, **Adresa** and the **description for search engines**, in each language (the address is made from the
  title when left empty; the page lives at `/campanie/<address>`).
- **Începe** / **Se termină** (starts / ends): the page is online between these moments. Before the start nobody sees
  it; after the end it answers that the campaign has ended, so links from old ads don't land on an error. Leave them
  empty for a page that stays.
- **Publicată** (published): an unpublished page is a draft.
- **Previzualizează** (preview) opens the page as shoppers will see it, even as a draft or before it starts, through a
  link that works for an hour and is never indexed.

Under **Conținut** (content), **Adaugă un rând** adds a row. For each row choose:

- the **columns**: one, two equal, wide + narrow, narrow + wide, three, or four; on phones they stack;
- the **width**: in the page, or full width (for banners that span the screen);
- the **background**: plain or tinted.

In each column, pick a module type and **Adaugă**. Arrows move rows and modules; the bin removes them. The modules:

- **Text**: Markdown (`## heading`, `**bold**`, `- list`, `[link](https://…)`); HTML is shown as text, never run.
- **Produse** (products): a title and the products, from **product codes** (in the order you write them), **a
  category**, **a brand** or **a promotion's products**, up to 24, at each shopper's own prices, with stock as
  everywhere in the shop.
- **Banner**: an image from the page's **Imagini** (upload them below the editor; WebP sizes are made automatically), a
  heading, a short text, the image's description, and a button with its text and link (a shop address such as
  `/categorie/cafea`, or `https://…`).
- **Branduri** (brands): a title and the brands, as links to their pages (brands with products on sale).
- **Articole** (articles): a title and the latest published [blog](blog.md) articles, all or one category's, up to 12.

A live page is in the sitemap, with its address in every language; a changed address answers with a permanent redirect
from the old one.
