Master Pages and Menus

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
mark_aus
 
 
Posts: 4
Joined: Mon Jan 29, 2018 1:20 am

Master Pages and Menus

Post 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?
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Master Pages and Menus

Post 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.
User avatar
Pablo
 
Posts: 23612
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Master Pages and Menus

Post 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'.
mark_aus
 
 
Posts: 4
Joined: Mon Jan 29, 2018 1:20 am

Re: Master Pages and Menus

Post 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.
User avatar
Pablo
 
Posts: 23612
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Master Pages and Menus

Post by Pablo »

I meant, instead using a master page for the menu, use 'Synchronize with Site manager'.
mark_aus
 
 
Posts: 4
Joined: Mon Jan 29, 2018 1:20 am

Re: Master Pages and Menus

Post by mark_aus »

Ahh. My misunderstanding. Thank you.
mark_aus
 
 
Posts: 4
Joined: Mon Jan 29, 2018 1:20 am

Re: Master Pages and Menus

Post 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. :D
User avatar
Pablo
 
Posts: 23612
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Master Pages and Menus

Post 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.
Post Reply