-
Notifications
You must be signed in to change notification settings - Fork 2
admin site editing
Max Ivak edited this page Dec 18, 2018
·
3 revisions
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.
Links to edit for a block:
- when hover a block of content, context menu appears with links to edit template and other data.
-
each template can have related data
-
edit file in
__name__.meta.ymlapp/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