将@mention 对象添加到概念页面标题?
Posted
技术标签:
【中文标题】将@mention 对象添加到概念页面标题?【英文标题】:Add an @mention object to a notion page title? 【发布时间】:2021-09-04 01:12:09 【问题描述】:我想自动设置我的日常日志,通常标题为“Daily Journal @today”
我的帖子请求的正文如下所示:
body:
parent: database_id: databaseId ,
properties:
title:
title:[
"text":
"content": "Daily ..." // how do I add an at mention here, @today
]
,
date: new Date().toISOString()
,
如何在标题中提及 at?
【问题讨论】:
【参考方案1】:您可以将其添加为标题,也可以将其提供为富文本。下面是一个例子。同样,您可以将其添加到日期属性字段。我在富文本下方添加了一个示例。
"parent":
"database_id":"database"
,
"properties":
"Name":
"title":[
"text":
"content":"A Test Page"
,
"type":"mention",
"mention":
"type": "date",
"date":
"start": "2021-07-28T11:00:00.000-04:00"
]
,
"sample_text":
"rich_text":[
"type":"mention",
"mention":
"type": "date",
"date":
"start": "2021-07-11T11:00:00.000-04:00"
,
"type":"text",
"text":
"content":"Some more text with "
,
"type":"text",
"text":
"content":"some"
,
"annotations":
"italic":true,
"bold": false,
"underline": false,
"strikethrough": true,
"color": "blue"
,
"type":"text",
"text":
"content":" "
,
"type":"text",
"text":
"content":"fun"
,
"annotations":
"bold":true,
"underline": false,
"strikethrough": false
,
"type":"text",
"text":
"content":" "
,
"type":"text",
"text":
"content":"formatting"
,
"annotations":
"color":"pink"
]
,
"Time":
"date": "start": "2021-08-08T01:00:00.000-05:00"
【讨论】:
【参考方案2】:我认为我可以做到这一点
title:[
"text":
"content": "Mind Cap "
,
"mention":
type: "date",
date:
"start": new Date().toISOString().substr(0,10)
]
但这仍然不是很好的“@Today”提及
【讨论】:
以上是关于将@mention 对象添加到概念页面标题?的主要内容,如果未能解决你的问题,请参考以下文章