显示所有页面的列表。
块关系
允许的内部块:
– core/page-list-item
属性
通过 block.json 中的 attributes 属性定义。
支持
通过 block.json 中的 supports 属性定义。
anchor:truereusable:falsehtml:falsetypography:fontSize:truelineHeight:true
interactivity:clientNavigation:true
background:backgroundImage:truebackgroundSize:truegradient:true
color:text:truebackground:truelink:truegradients:true
spacing:padding:truemargin:true
shadow:truedimensions:minHeight:trueminWidth:true
contentRole:true
上下文
通过 block.json 中的 usesContext 和 providesContext 属性定义。
使用的上下文:
textColorcustomTextColorbackgroundColorcustomBackgroundColoroverlayTextColorcustomOverlayTextColoroverlayBackgroundColorcustomOverlayBackgroundColorfontSizecustomFontSizeshowSubmenuIconstyleopenSubmenusOnClicksubmenuVisibilitycore/isInsideSubmenu
块标记
这是一个 动态块。它在服务器上渲染,不会在帖子内容中保存 HTML。
在帖子内容中,它存储为块注释:
<!-- wp:core/page-list /-->
来源
- block.json (参考)
- 源代码目录 — 浏览
edit和save源文件,index.php等。