将 link 添加到剃刀模板中的内容 items/data

add link to content items/data from razor template

我可以添加以下行来创建直接 link 以从剃刀模板添加新项目

@* this will show an "add" button if the current user is an editor *@
@Edit.Toolbar(actions: "new", contentType: "ContentTypeName")

如果用户是编辑者,是否有类似的方法可以直接 link 访问内容的 items/data,而不是通过单击项目的工具栏 [...] "table" button/icon.

更新:

我尝试添加操作名称 'contentitems',如所列 here:

 @Edit.Toolbar(actions: "new,contentitems", contentType: "ContentTypeName")

但是没有添加"table"按钮。

解决方案:

我使用了下面的代码(注意添加了"more")

@Edit.Toolbar(actions: "new, more, contentitems", contentType: "Image")

用户必须点击“...”更多按钮,但这对我来说没问题。

目前的问题是附加按钮在菜单的单独旋转中,因此它们不可见。这还没有完全实现,目前最快的解决方案是同时添加 "more" 按钮,以确保您可以旋转到 table。对不起:(