Link root recursive to submenu pages

Issues related to hyperlinks and web site navigation.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/links.html
Post Reply
juergen_riedl
 
 
Posts: 5
Joined: Mon Aug 27, 2018 6:45 pm

Link root recursive to submenu pages

Post by juergen_riedl » Mon Aug 27, 2018 7:27 pm

Problem with (most) recent version of WWB14 I recently purchased:
short description:
in an homepage index.html the link via a menu bar to a sub page is by example: "./folder1/page1.html". When I click on this link, that page1.html appears in the browser. Clicking then on the menu item home(index.html) fails, because the link generated by WWB14 is "./index.html" insted of "../index.html". Having the mouse hovering above the home menu firefox shows the generated link at the bottom left as "./folder1/index.html".

This behaviour is independent on the kind of menu bar I select.

I checked it with either versions of WWB14, I even deleted this version, rebooted and reinstalled. The behaviour ist still the same. Is there a configuration I missed?

Thanks, Jürgen

User avatar
Pablo
 
Posts: 14128
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Link root recursive to submenu pages

Post by Pablo » Mon Aug 27, 2018 8:15 pm

Is the menu part of a master page?
If yes, is that master page in the same folder as the page?

Internal links are relative to the current page so if the master page is in a different folder, then the links will not be valid.

juergen_riedl
 
 
Posts: 5
Joined: Mon Aug 27, 2018 6:45 pm

Re: Link root recursive to submenu pages

Post by juergen_riedl » Tue Aug 28, 2018 6:25 am

Thank you Paulo for your fast answer.

The master frame (with conten place holder) is lokated in the root folder, that is, where index.html is located.
Does your comment suggest, to have in all folders a copy of this master frame? Or did I misunderstood the concept of the master frame?
What can I do, to make use of the master frame having for the entire site only one?
Thank you, Jürgen

User avatar
Pablo
 
Posts: 14128
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Link root recursive to submenu pages

Post by Pablo » Tue Aug 28, 2018 6:34 am

Correct. the master page/frame should be in the same folder ads the pages that are using it.
Links are relative to the current folder, so if you call the master page from another folder then the links will not be valid.

juergen_riedl
 
 
Posts: 5
Joined: Mon Aug 27, 2018 6:45 pm

Re: Link root recursive to submenu pages

Post by juergen_riedl » Tue Aug 28, 2018 7:01 am

Thank you Paulo for your immediate reply,
now it works.
Jürgen

juergen_riedl
 
 
Posts: 5
Joined: Mon Aug 27, 2018 6:45 pm

Re: Link root recursive to submenu pages

Post by juergen_riedl » Tue Aug 28, 2018 7:37 am

There is still a bug.

I copied the master frame into the repective folder and giving it an afterfix letter of the folder e.g. master_frame-f. I verified in the properties page that the links to the pages e.g. index.html are still there and selected it for test again. A rebuild of the site results in the old behaviour with wrong links.
Only after a resync with "Syncronice with Site Manger" the links are updates correctly. Unforunately then all customizations linke Awesom Icons, new names are gone and need a rebuild.

Can that be fixed, Paulo?

User avatar
Pablo
 
Posts: 14128
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Link root recursive to submenu pages

Post by Pablo » Tue Aug 28, 2018 8:38 am

I do not think the problem is in the application. it has been working like this for years and it is logically that links in from another folder do not work.
If you still have a problem then the structure of the website may still be wrong.
Without seeing what you have done it will be difficult to help you with this.
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

juergen_riedl
 
 
Posts: 5
Joined: Mon Aug 27, 2018 6:45 pm

Re: Link root recursive to submenu pages

Post by juergen_riedl » Wed Aug 29, 2018 8:50 am

Hi Paulo,

to prepare for your help I cleaned up all I did. I deleted all master frames in the subfolders (I understood your suggestion such, that each subfolder needs a master frame because the links in the master frame are relative to the subfolder) to show you how the failure happens step by step.

The menu(s) of master frame where also cleand up and ... drum roll ... Now all links with *one master frame only* in the root of the site, even for the subfolders will be generated correctly. For those who have also troubles once, here is what I did:

On my master frame (which is on the level of the index.html) there is in the header on menu and in the footer two css menus as short cut to important pages. The menue in the header is the ResposiveMenue ( which provides deep links on multiple sub folder levels). Since the menu was already customized with Awesam Icons and special wording like: agb.html became as Headline "Allgmeine Geschäftsbedingungen" and an menu item "AGB" I did not want to automatically redo the menu with "Synchronice with SiteManager" as the all custonizations will the be lost. Instead I set all and every link to index.html, confirmed all with OK, closed the properties of the menue with OK finally, reopend the properties page of the menu again and set the links correctly. Thats ist. Then the sithe is generated with one master frame as I expected and also deep links work.

Thanks, Jürgen

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests