This is an example of a directory structure I imported:
- exdir
-
- subdir
- file1.htm
- file2.htm
- index.html
- subdir
Where the filename index.html is listed as a "Default document" in the import profile. In the import result what I wanted and expected was a single "subdir" item in the root menu that when clicked on would display the "index.html" file in the content block, and expand the "exdir" menu item to display the child items "subdir" and "file2."
What I got were two identically named "exdir" items in the root menu as shown in this structure:
- exdir
-
- file2
- file2
- exdir
-
- subdir
- file1
- subdir
When the first "exdir" item is clicked on I got the index.html import in the content area as expected. But the menu expanded to show only one child menu item, and this was "file2." The "subdir" submenu item was missing. When the second "exdir" root menu item was clicked on a default page appeared and the missing "subdir" child item appeared in the expanded menu.
The expected menu structure I did not get is:
- exdir
-
- file2
- file2
-
- subdir
- file1
- subdir
I need to know how to make the menu import as I expected. I do not have time to manually combine the children of two identical menu items everywhere they will appear in the import.
When the "subdir" menu item was clicked on it did what was expected. A default page appeared in the content area and the menu expanded to show the "file1" item.
Comments
Comment #1
dman commentedThanks for the clear explanation.
Your expectations are correct. It's designed for the /exdir/index.html to represent the /exdir link, and become parent to all the other items.
You will still get a placeholder created for the /exdir/subdir - but that's ok.
I'll try to replicate, but I've not seen it before. It's not happened for me
Please try the -dev release and see if it happens there too. the 6-1 is pretty old now.
I've reviewed the current code (and updated the UI a little to indicate 'default' docs) but it's not happening for me. in -dev anyway.
Comment #2
verta commentedJust a comment, I am trying to understand what menus are going to be created, using what part of my imported files (contents, tags, ids, filenames, what).
I have been experimenting with the sample files, and the import process added them to an empty menu I had created.
Comment #3
dman commentedClearing the old 6.x issues from the issue queue for a cleanup.