Page 1 of 1
masterpage
Posted: Fri Dec 11, 2020 10:49 pm
by crownfield
14.3.2
master page is to make common elements match in other pages.
I created a banner page, and the banner uses the page name
I embedded that into the masterpage, and set use page name.
it shows 'masterpage' correctly.
I added that masterpage to the index page,
and now the home page title shows 'masterpage', instead of home.
??
how do I get the banner to show the proper page?
Re: masterpage
Posted: Sat Dec 12, 2020 8:01 am
by Pablo
A banner is an image, so if you put it on a master page then it will be the same for all pages.
Re: masterpage
Posted: Sat Dec 12, 2020 7:36 pm
by crownfield
so instead of using a masterpage to make the banners a common element,
I need to insert them one by one for each and every page.
Re: masterpage
Posted: Sat Dec 12, 2020 8:52 pm
by Pablo
If the banner needs to be different for all pages then it cannot be part of the master page.
Re: masterpage
Posted: Sat Dec 12, 2020 9:19 pm
by lummis
@Pablo
Would it be possible to use the variable $PAGE_NAME$ on the banner on a master page. Or have I misunderstood the question.
Re: masterpage
Posted: Sun Dec 13, 2020 8:03 am
by Pablo
I do not think that will work because the banner is an image. So, it will be the same image (with the same text) for all pages.
Re: masterpage
Posted: Sun Dec 13, 2020 5:30 pm
by lummis
@crownfield
As Pablo has reminded me, you can't use my workaround as the Banner object is an image. So you may have to think of another way to do what you want to achieve. One suggestion is to replace the Banner object in your Master Page with a Layer or a Layout Grid depending on the design for the rest of your page. Insert into the Layer/Layout Grid a Text object and insert the following text $PAGE_TITLE$ which is the variable for the title of the page. If that Master Page is placed into each of your pages then the Title of the page will appear in each of you pages.
If you want to look at the other variables that are available look at Page Menu in the help file.
Brian
EDIT You don't have to use a Layer or Layout Grid, you could just use the Text object, so it's whatever suits your design.