Page 1 of 1

Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 8:36 am
by Base12
I am looking for a way to reuse a menu on multiple pages.

I understand that there are three ways to make this work per the tutorials...

viewtopic.php?t=47905

However, Pablo does not recommend placing an Embedded Page in a Flex Grid...

viewtopic.php?t=99383

I am already using the Master Page (with Content Placeholder) for the main navigation.

Currently, I am using Embedded Page which seems to work, but again it is not recommended.

Here is a preview...

https://www.mostholyplace.org/misc/test ... iple_pages

Here is the demo project...

https://www.mostholyplace.org/misc/test ... _pages.wbs

Select 'Page1' to see the submenus.

How can I do this the correct way? Thanks!

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 9:08 am
by Pablo
For re-using a menu/header I suggest to use a master frame or master page instead. Embedded pages are mainly for reusing objects in fixed/absolute layouts.

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 5:19 pm
by Base12
Pablo wrote: Wed Oct 09, 2024 9:08 am For re-using a menu/header I suggest to use a master frame or master page instead. Embedded pages are mainly for reusing objects in fixed/absolute layouts.
I am already using the Master Frame as the main layout/navigation for the entire website.

How can I have more than one Master Frame? The software seems to limit it to only one.

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 5:33 pm
by Base12
In WebPlusX8, I had several Master Pages that I could add to a page...

Image

Is there something similar in WYSIWYG Web Builder?

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 6:57 pm
by bkjohns
You can create as many master type pages as you want and direct each page to use any one of them. I name mine master_1, master_2, etc. but they don't have to be named anything in particular.

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 7:19 pm
by Base12
bkjohns wrote: Wed Oct 09, 2024 6:57 pm ...direct each page to use any one of them.
That is the issue. I can only use *one* of them.

I already used the one for my main layout. I need to insert another on the same page.

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 7:32 pm
by alan_sh
Maybe ask Pablo to allow mutliple master pages in the suggestions forum?

Alan

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 7:43 pm
by Pablo
You can have only one master page otherwise you would end up with a corrupt HTML structure, because a 'master page' is basically the base structure of the page.

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 8:11 pm
by Base12
alan_sh wrote: Wed Oct 09, 2024 7:32 pm Maybe ask Pablo to allow mutliple master pages in the suggestions forum?

Alan
Inserting an Embedded Page into a flexible container seems easier and more intuitive.

I guess the suggestion would be to have Embedded Pages work in both non-fixed as well as absolute layouts.
Pablo wrote: Wed Oct 09, 2024 9:08 am Embedded pages are mainly for reusing objects in fixed/absolute layouts.
Like I show in the example in the OP, having an Embedded Page in a Flex Grid works really well when published. I suspect folks are already doing this as a workaround?

I see that this has been discussed before...
HGF wrote: Sun Jul 24, 2022 1:52 pm Hello,
In a "flex grid" I have an "embedded page".
The embedded page contains a menu structure only.
The idea is to reuse the menu structure multiple times and to make it easier to update all pages if the master menu is change.
In generell this works fine but the problem is, the drop down sub items are not coming to front.
I've taken a screenshot showing the issue. Unfortunately I don't know how to uopload.
Can somebody help?
Thank you,
HGF
Even wwonderfull suggested the idea...
wwonderfull wrote: Sun Jul 24, 2022 4:24 pm If you are trying to make the embedded page on the top, then I think it has to be in a layout grid or a flex container and set to header, that would make it stay top on there or you can use sticky too.
Anyhow, this is something I was able to do in my old WebPlus X8, so I just assumed it is a common feature in web software. 

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Wed Oct 09, 2024 8:39 pm
by Base12
To see the real-world example, this is the page with the two menus that I would like to be reusable on many pages...

https://www.mostholyplace.org/bci.html

The visitor will select Book, Chapter and Verse to then be sent to that page.

As you can see, the two menus are only used on the 'Bible Commentary and Interpretation' section of the website.

I do not need/want those menus to be on every page of the website, yet I do not want to have to edit the menus on every page in the future if I need to change a color or font or whatever. Make sense?

I feel like this is a common thing that web builders do.

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Thu Oct 10, 2024 4:26 am
by Base12
I did some research to help explain what I am looking for.

In Bootstrap Studio, there is a feature called 'Linked Components' that does what I want...

https://bootstrapstudio.io/docs/linked- ... ste-method

Does WWB have something similar?

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Thu Oct 10, 2024 4:32 am
by crispy68
No. Not that I'm aware.

Re: Reuse Same Menu on Multiple Pages Without Embedded Page?

Posted: Thu Oct 10, 2024 6:04 am
by Pablo
In WebPlusX8, I had several Master Pages that I could add to a page...
WebPlusX8 uses fixed layout... so, in that case it is much easier to 'mix' content because it always has the same size.
When using flexible layout you will need structure in the page.
Additionally, web builder includes many more features, making it significantly more complex to ensure it functions correctly in all scenarios.