Skip to content
Max Ivak edited this page Dec 18, 2018 · 3 revisions

Site editing

Edit site in admin mode. When admin is logged in in admin area, you can open site and it ass some options to edit site in context.

Editing in context

Links to edit for a block:

  • when hover a block of content, context menu appears with links to edit template and other data.

Links to edit data for a block

  • each template can have related data

  • edit file in __name__.meta.yml app/views folder


links:
  -
    title: "Description"
    path: "/news/#{item.id}/edit"

  -
    title: "Link2"
    path: "/entity2/#{item.id}/edit"

  • variables will be evaluated in the context of block.

use block in your view:

%h1 News

- news.each do |item|
  =block 'news/newsitem', item: item

Links to edit data for the blocks:

/admin/news/2/edit

Clone this wiki locally