Page 1 of 1
Master Page
Posted: Tue Aug 24, 2021 5:39 am
by davehappen
So, the last couple of sites I've built I used Layout Grids, This Time I wanted to use a Masterpage, Built it, put some rubbish in it, Previewed it all fine but when I publish it that master doesn't show just the pages, I've looked at the online tutorials and cant see what I'm ding wrong.
TIA
Dave
https://1drv.ms/u/s!Ar_qzWsihagxhtMNKHm ... w?e=75J5zW
Re: Master Page
Posted: Tue Aug 24, 2021 5:45 am
by davehappen
sorry forgot the site name
te3t.xyz
Re: Master Page
Posted: Tue Aug 24, 2021 6:01 am
by Pablo
There is no difference between preview and publishing. In both cases, the exact same files will be generated.
If the online pages do not look correct then make sure all files have been published.
Note: your website is here:
http://te3t.xyz/index.html
Re: Master Page
Posted: Tue Aug 24, 2021 6:39 am
by davehappen
that looks nothing like the preview, the header is wrong, the index page is below the footer and the menu is wrong. arte the pages set up correctly????
Re: Master Page
Posted: Tue Aug 24, 2021 7:33 am
by Pablo
If the online pages do not look correct then make sure all files have been published.
Other tips:
- the page alignment should be set to 'do not center this page'
- document type in page properties should be set to 'html5'
- pages with forms should be 'php'
- make page names lower case.
Re: Master Page
Posted: Fri Aug 27, 2021 7:41 am
by davehappen
Hi all, I've read the blurb and i can't see what I'm doing wrong, I've rebuilt the site and it previews perfectly, as soon as I publish the site master frame is no where to be seen. I've tried with Don't publish this page and without but still wont work properly. I can get the index page, but navigation menu is on the master, there is quite a few pages and i don't really want to headers and footers on every page.
Thanks in Advance
Dave
https://1drv.ms/u/s!Ar_qzWsihagxhtZMe4x ... Q?e=m73i5S
Re: Master Page
Posted: Fri Aug 27, 2021 8:15 am
by Pablo
Your project looks ok.
As previously mentioned, there is no difference between preview and publishing. In both cases, the exact same files will be generated.
So, if the published page does not look the same then something went wrong with publishing.
Are there any errors in the publish log?
Did you make sure all files have been uploaded?
What is the URL of the website?
Re: Master Page
Posted: Fri Aug 27, 2021 8:26 am
by davehappen
i publish thro a hosting app so i'm not sure about logs, i save all the file in html form and upload that way. I have other sites that dont have a master page and they are ok.
The site is britishlegionchonburi.org.uk
Re: Master Page
Posted: Fri Aug 27, 2021 8:29 am
by alan_sh
When you click on 'publish' in WWB, it produces a log. That is what Pablo wants you to look at. When you click on 'Publish', where are you publishing to? It may be that there are some files (.html etc.) that you are not copying to your host.
Alan
Re: Master Page
Posted: Fri Aug 27, 2021 8:36 am
by davehappen
hi alan, i dont publish thro the publish on wwb. so no logs, heres the files i upload;
https://1drv.ms/u/s!Ar_qzWsihagxhtYtR_l ... g?e=21aTc4
Re: Master Page
Posted: Fri Aug 27, 2021 8:39 am
by alan_sh
How do you create the html files then?
Re: Master Page
Posted: Fri Aug 27, 2021 8:41 am
by davehappen
I go to save as & HTML Documents into a separate folder
Re: Master Page
Posted: Fri Aug 27, 2021 8:42 am
by davehappen
Sory missed out an important bit you have to save every page separately
Re: Master Page
Posted: Fri Aug 27, 2021 8:43 am
by alan_sh
OK - I've never done that. I am pretty sure that the "save as" was never intended to be a publish method.
How about you try publishing to a local folder and see if there are any differences in the files saved from the method you use.
regards
Alan
Re: Master Page
Posted: Fri Aug 27, 2021 8:46 am
by davehappen
like i said i have 5 sites all published that way, the only one i have trouble with is the one with the masterpage
Re: Master Page
Posted: Fri Aug 27, 2021 8:48 am
by davehappen
I haven't tried that but i wouldn't know how what credentials to input into the publish
Re: Master Page
Posted: Fri Aug 27, 2021 8:50 am
by alan_sh
Dave,
As we have no view of your .wwb file, it's hard to know what you have in there. It would be good if you could just try it the 'normal' way to see if it works for you. That would eliminate one issue.
So, can you give it a try?
There are no 'credentials' you need to put in if it's published to a local folder. You just need to give it a name and tell it what local folder you want to use (I suggest you create one first).
Alan
Re: Master Page
Posted: Fri Aug 27, 2021 8:52 am
by davehappen
wwb files are in the first message
Re: Master Page
Posted: Fri Aug 27, 2021 8:58 am
by davehappen
I've published to a folder and i've got excatly the same file. when i click on visit web site it works properly but that s the same as preview i think.
Re: Master Page
Posted: Fri Aug 27, 2021 9:01 am
by alan_sh
All Preview does is a'publish' to a specific folder. So, yes, it should be the same and it should work.
So, take the files produced by 'publish' - ALL of them - and copy them to your hosting server.
Alan
Re: Master Page
Posted: Fri Aug 27, 2021 9:02 am
by alan_sh
I tried to open your test123.wbs file but I don't have the 'logo' extension, so I couldn't try it out myself.
Alan
Re: Master Page
Posted: Fri Aug 27, 2021 9:08 am
by alan_sh
I did try doing a 'save as html' on one of my pages and it produced the .html file, a .js file and 3 sub-filders, each with files in. Are you copying ALL those files and folders to your hosting server into the correct locations?
Re: Master Page
Posted: Fri Aug 27, 2021 9:11 am
by davehappen
There most have been a bad file the way i converted the wwb files. I did as you suggested and all works now, i remember to convert my file thro the publish in wwb.
Many thanks for your help and patience.
Dave
Re: Master Page
Posted: Fri Aug 27, 2021 9:25 am
by alan_sh
Well done.
At least we got it sorted.
The 'publish' method is good because it can do all your files in one go and you know you haven't missed anything.
Cheers
Alan
Re: Master Page
Posted: Fri Aug 27, 2021 9:25 am
by WWBman
FWIW:
@davehappen When you say you use "Save as & HTML Documents"" did you mean you use "Export to HTML"?
I did a test and the master page doesn't get merged with the 'normal' page.
@alan_sh Where is the "save as HTML" option, I can't find it, did you have a master page in your test?
I've always used the built-in Publish.
Re: Master Page
Posted: Fri Aug 27, 2021 9:26 am
by davehappen
thanks again Alan
Re: Master Page
Posted: Fri Aug 27, 2021 9:30 am
by alan_sh
WWBman wrote: Fri Aug 27, 2021 9:25 am
FWIW:
@davehappen When you say you use "Save as & HTML Documents"" did you mean you use "Export to HTML"?
I did a test and the master page doesn't get merged with the 'normal' page.
@alan_sh Where is the "save as HTML" option, I can't find it, did you have a master page in your test?
I've always used the built-in Publish.
WWBman,
Click on 'File', then 'Save as' then 'html document'. I do NOT mean export to HTML. It saves the .html, jquery-1.12.4.min.js and all necessary sub folders (that's what it did for the page I tried). Yes, I have a master page.
I agree - this is NOT the way to publish web sites. I also use 'Publish'.
Alan
Re: Master Page
Posted: Fri Aug 27, 2021 9:35 am
by WWBman
That's curious. I have:
Save Web Site
Save Web Site As
Save As Template
but no Save as.
I use the Menu/Toolbar not the Ribbon.
What do you use?
Re: Master Page
Posted: Fri Aug 27, 2021 9:37 am
by davehappen
it was the save web site as that i used
Re: Master Page
Posted: Fri Aug 27, 2021 9:40 am
by WWBman
davehappen wrote: Fri Aug 27, 2021 9:37 am
it was the
save web site as that i used
I see, OK.