1

I have a valid page name that I need to resolve to a page title. Example:

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.

How can I get the title of Main.TargetPage from Main.CurrentPage?

wizzwizz4
  • 6,140
  • 2
  • 26
  • 62

2 Answers2

1

You can get the title of a page with this function call:

$PageTitle = PageVar(ResolvePageName('Main/TargetPage'), '$Title');
wizzwizz4
  • 6,140
  • 2
  • 26
  • 62
0

You can get the other's page title by command {Main.TargetPage$Title}, see official docs:

ravibagul91
  • 20,072
  • 5
  • 36
  • 59
Finar
  • 11
  • 2