Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a template function getHPathByID #11734

Closed
TCOTC opened this issue Jun 16, 2024 · 5 comments
Closed

Add a template function getHPathByID #11734

TCOTC opened this issue Jun 16, 2024 · 5 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Jun 16, 2024

增加模板函数:通过 ID 获取特定文档的路径

@TCOTC TCOTC changed the title 增加模板函数:获取当前文档的路径、通过 ID 获取特定文档的路径 增加模板函数:通过 ID 获取特定文档的路径 Jun 16, 2024
@2234839
Copy link
Member

2234839 commented Jun 16, 2024

我感觉可以考虑等我的表达式插件支持数据库列 😁

@TCOTC
Copy link
Contributor Author

TCOTC commented Jun 16, 2024

感觉跟这个 issue 没什么关系?

@TCOTC TCOTC changed the title 增加模板函数:通过 ID 获取特定文档的路径 ✨增加模板函数:通过 ID 获取特定文档的路径 Aug 10, 2024
@88250 88250 changed the title ✨增加模板函数:通过 ID 获取特定文档的路径 增加模板函数:通过 ID 获取特定文档的路径 Aug 11, 2024
@88250 88250 self-assigned this Sep 19, 2024
@88250
Copy link
Member

88250 commented Sep 19, 2024

@TCOTC 你看下是不是这个效果:

模板:

title: .action{ .title } 
id: .action{ .id }
hpath: .action{ getHPathByID .id}

输出:

image

@88250 88250 added this to the 3.1.7 milestone Sep 19, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Sep 19, 2024

能这样用就是对的:.action{ getHPathByID "20240308161717-xkgiour" }/.action{ "20240308161717-xkgiour" | getHPathByID }

@88250
Copy link
Member

88250 commented Sep 19, 2024

.action{ getHPathByID "20240308161717-xkgiour" }/.action{ "20240308161717-xkgiour" | getHPathByID }

image

看上去没有问题,稍后提交代码。

@88250 88250 changed the title 增加模板函数:通过 ID 获取特定文档的路径 Add a template function getHPathByID Sep 19, 2024
@88250 88250 closed this as completed Sep 19, 2024
TCOTC added a commit to TCOTC/siyuan that referenced this issue Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants