Page 1 of 1
Master Pages and Menus
Posted: Tue Aug 22, 2023 3:06 am
by mark_aus
I'm trying to write a Master Page that provides the top level menu for all pages irrespective where they are in the directory structure. The menus I've attempted to use in the Master appear to be built with the relative links at the level where the Master Page resides, rather than at the level where the content page is located.
Is this correct, or am I doing something wrong?
Re: Master Pages and Menus
Posted: Tue Aug 22, 2023 3:22 am
by wwonderfull
Without seeing what you have already done it is unsure to say. But the master page has the menu on the header and footer you can place it on a grid or use page header or page footer tool.
If you want to use master page like a frame then place content place holder just between the header and footer and if you want to show it like an embedded page then no need for content place holder just use the master page option and direct the other pages to that master page.
Re: Master Pages and Menus
Posted: Tue Aug 22, 2023 6:08 am
by Pablo
Is this correct, or am I doing something wrong?
Yes, this is correct.
As documented in the help, the master page should be in the same folder the the pages that use. Otherwise the (relative) links will not be valid.
Alternative, you can use absolute links. Or use 'Synchronize with Site manager'.
Re: Master Pages and Menus
Posted: Tue Aug 22, 2023 7:34 am
by mark_aus
Okay. Thanks for that, although I'm not sure what you mean by " use 'Synchronize with Site manager'." The menus that I'm having problems with have that property set already, so I'm guessing this isn't part of my solution.
I see that absolute links would certainly cure the issue, but that makes building to my test computer an issue. I'll guess I will make two Masters and rename them when I want to change build destinations.
Re: Master Pages and Menus
Posted: Tue Aug 22, 2023 7:41 am
by Pablo
I meant, instead using a master page for the menu, use 'Synchronize with Site manager'.
Re: Master Pages and Menus
Posted: Tue Aug 22, 2023 8:07 am
by mark_aus
Ahh. My misunderstanding. Thank you.
Re: Master Pages and Menus
Posted: Thu Aug 24, 2023 8:46 pm
by mark_aus
Absolute links didn't really solve my problem as that makes it impractical to easily test the site on a sand pit. Since I wanted to have a menu at the very top of the page, moving the menu out of the Master Page and into the content wasn't practical either.
Not being an expert, the problem seems rather easy(*) to overcome by having the relative addressing start at the top level directory and work down, rather than the directory holding the file and work up. While that can be done manually, that essentially throws away the automation that the directory objects currently provide.
easy(*) - the amount of work to complete a task, but only if you are not the person who has to do it.

Re: Master Pages and Menus
Posted: Fri Aug 25, 2023 6:09 am
by Pablo
The idea behind a master page, is to reuse objects on multiple pages. But this also means that the HTML is the same for all those pages.
So, if the page is in another folder then a menu with relative links will not work. because the HTML is the same but the location is different.