Good morning,
I am a new user of Xway. I am starting to construct a website for our recently opened small business. I have put in a menu box which seems to work fine when I use the preview function. With one small hiccup! On all pages other than the home page the menu text seems to jump to the left edge of the page when a page is selected. On the home page it is centred. All pages menu boxes have the ‘use master content’ and ‘use master attributes’ boxes ticked (other than the home menu box where it does not appear to be an option).
I hope this has made sense, my apologies if not!! Any suggestions would be welcome.
M
Hi Myles,
Can you send me a copy of your document (via support at softpress dot com), so I can see what is happening? The best way to do this is to choose Duplicate from Xway’s File menu, and send me the duplicate copy. You can also empty the site folder (to make the document smaller and easier to send) by choosing Empty Site Folder from Xway’s File menu.
Also: when you say “menu box”, are you referring to the menu or to the menu items within the menu? I’m not sure if “home menu box” means the menu on the home page, or the home menu item within the menu.
If a menu, or menu item, does not have Use Master checkboxes, that means it has been added on an instance page rather than a master page, so this is something you should fix.
Hi Jeremy,
Thanks for coming back to me so promptly, and apologies for my poor description!
Basically when I look at the site using File - Preview, all looks as it should on the HOME page. The’ menu’ is in the correct position with the items centred on the webpage. When I click / navigate in Preview to any other page (ABOUT, GALLERY etc) the 'menu" items are displayed / displaced to the left of the page.
Looking at the site folder on the left hand side, it would appear that the HOME page does not have the Use Master checkboxes as you said, so I will have to rectify that somehow!
Myles
Sorry, with the Site Home highlighted on left hand side , the inspector panel on right hand side does not have those checkboxes. I can confuse the Gods on a good day!
Thanks for sending the document. I’ll reply to your issues here:
The menu on the home page doesn’t have a master: This is probably because you added it separately to the home page. There is an easy way to fix this, but you need to do a small amount of preparatory work:
- On the home page, select the two items after main (shop-centre-isle-1 and section1) in the Site panel, and cut them (Edit > Cut) from the page.
- Then choose main and press Command-Return to put a cursor inside it.
- Now paste the items back so they are within main
The reason for doing this is that you want the structure of instance pages to match the (three- or four-part) structure of master pages: header, menu, main, footer in your case. Anything that is unique to instance pages can go inside main. When you’ve done that, choose page-wrapper on the home page and select Use Master Content. This causes the content of page-wrapper on the home page to match the content of page-wrapper on the master page, so it now uses the master-page menu instead of its own menu.
[Note that if you had not moved the two items within main, they would have been deleted, because they’re not on the master page. Use Master Content causes the content of an instance box to match the content of a master box, but it doesn’t affect the content of boxes within the instance box (they have the own Use Master checkboxes).]
Menu items are aligned on the left: This is an interesting problem, and I think there is a bug in Xway which I will investigate. However, it is easy to fix:
- Select menu on the master page
- Choose Undefined from the Display popup in the Style section of the Box Inspector
Note that when you have done this, the Display popup will continue to show Normal (because this is the default Display value), but there is a difference between an undefined value (on output) and a defined value (on output): if a value is defined, it is output as a defined value, but if it is left undefined, it is not output and a browser will use the default value. In your document, you can also choose Undefined for Visibility (after selecting menu on the master page): boxes are visible by default, so there’s no need to define this value.
[The bug in Xway is that Xway is choosing flex display for menus when Display is set to Normal, and this is overriding other style values.]
Hi Jeremy,
That’s brilliant, thank you! Sorry for the confusion.
Much appreciated.
Myles