Bricks 中文文档:bricks/get_element_data/maybe_from_post_id

标签TAGS: 

📄 原始资料  |  展开查看原始 JSON(bricks-get_element_data-maybe_from_post_id.json){ “name”: “bricks/get_element_data/maybe_from_post_id”, “kind”: “filter”, “url”: “https://academy.bricksbuilder.io/developer/hooks/filters/filter-bricks-get_element_data-maybe_from_post_id/”, “scraped_at”: “2026-08-29”,…

📄 原始资料  |  展开查看原始 JSON(bricks-get_element_data-maybe_from_post_id.json)
{
  "name": "bricks/get_element_data/maybe_from_post_id",
  "kind": "filter",
  "url": "https://academy.bricksbuilder.io/developer/hooks/filters/filter-bricks-get_element_data-maybe_from_post_id/",
  "scraped_at": "2026-08-29",
  "hook_name": "bricks/get_element_data/maybe_from_post_id",
  "description": {
    "en": "The bricks/get_element_data/maybe_from_post_id filter, available @since 1.11 , allows you to specify an additional post ID from which to retrieve element data. This can be useful when dealing with custom elements that reference templates, posts, or external data sources, where the target element is not found within the standard element set. (Especially when dealing with Code element + Signed signature) This filter is useful when working with custom elements that reference data from other templates or posts. For example, if you have a custom element that stores additional Bricks content in another post or template, and there is a code element with a signed signature located there, Bricks may not render the code element on the frontend because it doesn’t know where to retrieve the signature. This filter allows you to specify the correct post or template to ensure that all elements are properly rendered.",
    "zh": "此筛选器允许你控制页面布局类型(堆叠/行/列)。"
  },
  "example_usage": null
}

前言

此筛选器允许你控制页面布局类型(堆叠/行/列)。

补充说明

更多细节可参考 官方文档