1

我有一个有效的页面名称,我需要将其解析为页面标题。例子:

Main.TargetPage

(:title Page One:)
I am the page of which the title needs to be got.

Main.CurrentPage

(:title Example Page:)
I am the page that the PHP script is being run from.

我怎样才能得到Main.TargetPagefrom的标题Main.CurrentPage

4

2 回答 2

1

您可以使用此函数调用获取页面的标题:

$PageTitle = PageVar(ResolvePageName('Main/TargetPage'), '$Title');
于 2017-12-30T16:46:46.387 回答
0

您可以通过命令{Main.TargetPage$Title}获取对方的页面标题,参见官方文档

于 2019-05-31T10:48:39.820 回答