[Extension issue] Wrong page path generated by TreeMenu / Tree View

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
christiaan
 
 
Posts: 51
Joined: Mon Sep 05, 2016 6:56 pm

[Extension issue] Wrong page path generated by TreeMenu / Tree View

Post by christiaan »

WWB is a phantastic web design application and Paplo's support is lightning fast.
Thank you Pablo for your strong efforts to keep WWB always state of the art.


I do WWB design on a complete different level so this issue to both extensions " TreeMenu " and " Tree View " is a little bit tricky to describe - but I do my best. The sample project is linked at the bottom of this post.

This Issue in one sencentce: Both extensions " TreeMenu " and " Tree View " do have an (very special) issue in generating the correct path to a project page.


Ok, let's go in details:
The project has the following structure (which can't be changed, so no work around is possible):

Image


" pageInFolderA " has got one text item and one TreeMenu item (extension " TreeMenu "):

Image


The TreeMenu item has got one entry - link to the page in folder B (internal web page link):

Image


Image


" pageInFolderB " has got one text item and pageInFolderA as *embedded* page (the yellow layer below is for understandability reason only):

Image


Sample Project:
http://www.filedropper.com/treemenu


Now generate " pageInFolderB ".

As an expected result " pageInFolderB " should contain a link to itself,
but the generated path to " pageInFolderB " is missing the " commonFolder " entry
so clicking on the link end up with an error page.


Image

Code: Select all

file:///C:/Users/LENOVO~1/AppData/Local/Temp/preview/folderB/START-HERE_pageInFolderB.html

The reason for this may be that the extensions " TreeMenu " and " Tree View " are using a different page selection than e. g. "embedded page " does:

Image


Sample Project:
http://www.filedropper.com/treemenu
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: [Extension issue] Wrong page path generated by TreeMenu / Tree View

Post by Pablo »

This is expected behavior.

The master page / embedded page must be in the same folder as the page that is using it.
The reason for this is that all links are relative to the location of embedded page. Because there is only one instance of the menu which is the same for all pages (because that is the purpose of the embedded page in the first place).

Note that applies to all menus/navigation and it is documented in the help.

See also the notes in this tutorial:
https://www.wysiwygwebbuilder.com/embedded_page.html

Alternatively, you can use absolute paths instead of internal links.
christiaan
 
 
Posts: 51
Joined: Mon Sep 05, 2016 6:56 pm

Re: [Extension issue] Wrong page path generated by TreeMenu / Tree View

Post by christiaan »

Lightning fast response, thank you Pablo.

But doing the same using a CSS Menu item (instead of a TreeMenu / Tree View item) *does* work.

Sample project *with* CSS Menu:
http://www.filedropper.com/treemenucss


But CSS Menu uses a *different* page selection than TreeMenu / Tree View does:


CSS Menu page selection:

Image



TreeMenu / Tree View page selection:

Image


Sample project *with* CSS Menu:
http://www.filedropper.com/treemenucss
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: [Extension issue] Wrong page path generated by TreeMenu / Tree View

Post by Pablo »

That is because the CSS menu is built-in so it can do some extra checks. However, even then it may not always work. That is why the note about this is in the documentation.
Extensions are separate applications which do not know where they are placed inside the project.
Post Reply