Setting text to be the same as the title?

Hi there,

I have my own webpage template that I duplicate to use the same format. But in multiple sections of the web page it references the title of the page. i.e. “Settings” page has it’s main title and other areas that use the same title name.

But I want to control these areas through code?
I know I can do this:
$w(‘#PlaylistTitle’).text = “Hello World!”;

But I would like to set this text to the same as the title of the page.

Hello,
you can set the text to you page title as follows:

   $w('#text1').text = $w("#myPage").title; 

you can check the following links for additional information.

1 Like

I was doing that but I was viewing it in Editor mode…

1 Like