我有一个有效的页面名称,我需要解析为页面标题。例:
(:title Page One:)
I am the page of which the title needs to be got.
(:title Example Page:)
I am the page that the PHP script is being run from.
如何从Main.TargetPage
获得Main.CurrentPage
的头衔?
您可以通过此函数调用获取页面的标题:
$PageTitle = PageVar(ResolvePageName('Main/TargetPage'), '$Title');