资源 ID 的电视输出 url 标题
当我创建一个多选输入时,我可以在其中选择资源,并且我希望输出成为该资源的链接。我怎样才能链接到阅读/显示我链接到的页面的标题?我找不到任何相关信息。
我尝试过 [[*pagetitle]],但链接文本是我当前所在页面的页面标题。
When I create a multi select input where i can select resources and I want the output to be a link to that resource. How can I get to link to read/show the title of the page i'm linking to? I can't find any info about that.
I've tried [[*pagetitle]], but then the link text is the pagetitle of the page i'm currently on.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
假设您的电视输出您要链接到的资源的 ID,您可以使用 getResourceField:
更多关于如何使用它在这里:
http://rtfm.modx.com/display/ADDON/getResourceField
Assuming your TV outputs the id of the resource you want to link to, you can use getResourceField:
More on how to use it here:
http://rtfm.modx.com/display/ADDON/getResourceField
尝试
[*pagetitle*]
或[*#pagetitle*]
。第一个应该可以正常工作。
try
[*pagetitle*]
or[*#pagetitle*]
.first one should work fine.