Recipes

A recipe sets up a whole site in one step: style, header and footer, navigation, pages from patterns and settings. You see its plan before anything changes.

For site owners and agencies · Leitvia Studio · Administrator · Checked with Leitvia 1.2.69, Leitvia Studio 1.3.65 and Leitvia Pro 0.8.55

Open a recipe

The recipe Company in Leitvia Studio. The video has no sound; the transcript below has the text of every step.
Transcript of the video
  1. Under Leitvia Studio, Recipes, each recipe names what it sets up.
  2. Open a recipe to see its plan before anything changes on the site.

Recipes of Studio

RecipeSets up
BlogA personal or team blog with the latest posts on the front page, an about page and a contact page
CompanyA company or agency site: home, services, about, contact and imprint
DocumentationProduct documentation with a page tree and search beside the content
PublicationA news site or magazine with the pages Google News looks for: editorial standards, authors, contact and imprint
ShopA WooCommerce shop with placeholders for the legal pages

With Leitvia Pro, its industry kits appear in the same list, with the source Add-on: Leitvia Pro.

The screen Recipes of Leitvia Studio with the recipes of Studio and the kits of Leitvia Pro, each with a name, a description and its source.
Recipes of Studio and, with Pro, its kits.

Apply a recipe

  1. Open Leitvia Studio › Recipes and click a recipe.
  2. Read the Plan: style variation, header, footer, navigation, settings and the Pages with title, slug and number of sections.
  3. Click Apply recipe. The dialog Apply the recipe …? lists the parts of your site it replaces, or says that nothing is replaced.
  4. Click Apply.

The recipe runs at once. Pages that exist are kept, and so are header, footer, navigation and style if you changed them after a recipe wrote them. A second run adds only what is missing.

The recipe Company opened in Leitvia Studio: its plan with style variation corporate-light, header, footer, navigation and footer navigation, the settings it sets, a table of five pages with slug and number of sections, and the button Apply recipe.
The plan of the recipe Company.
The dialog Apply the recipe Company? of Leitvia Studio: what the recipe replaces, here nothing because it only adds what is missing, the note that it applies at once and can be rolled back in the Inbox, and the buttons Cancel and Apply.
Before the recipe runs, the dialog names what it replaces.

Read the result

Under Result, the table Steps shows each step with its target and status, such as Live, Draft, Unchanged or Kept as it is. A step that shows Waits in the Inbox was not applied yet: open the Inbox from the link below the result and apply it there.

The section Result of a recipe in Leitvia Studio: the link to the Inbox and the table Steps with the columns Step, Target, Status and Note.
The steps of a run with their status.

Undo

Studio keeps the changes of a run together as a change package, one entry in the Inbox that you review or roll back as a whole.

  1. Click Roll the changes back in the Inbox below the result, or open Leitvia Studio › Agents, tab Inbox.
  2. Open the package of the recipe and click Roll back.

More on packages in Autonomy and the Inbox.

For developers

With WP-CLI, apply runs as a user and needs --user. It prints the steps and the number of the change package, and exits with 1 when a step was rejected. More in the Developer guide.

wp leitvia recipe list
wp leitvia recipe apply leitvia/company --user=admin