在PmWiki中获取另一页的标题

问题描述 投票:1回答: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.TargetPage获得Main.CurrentPage的头衔?

php page-title pmwiki
1个回答
1
投票

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

$PageTitle = PageVar(ResolvePageName('Main/TargetPage'), '$Title');
© www.soinside.com 2019 - 2024. All rights reserved.