1. Anonymous User
  2. RO CSVI
  3. Friday, 06 December 2019
  4.  Subscribe via email
Hi,

I have tried to import a menu structure with 5 levels. The path for each menu item did not exist in Joomla, so during the import each path was created anew in Joomla - from the top level to the bottom level. I would have expected the import *not* to duplicate menu items at each level if they already exist. To take a geographical hierarchy as an example:

Path for record 1: Europe/Italy/Tuscany/Florence

Path for record 2: Europe/Italy/Tuscany/Siena

When impoprting record 2, the menu import template creates a 2nd menu item "Europe" at the top level, a 2nd menu item "Italy" at the second level, a 2nd menu item "Tuscany" at the third level, instead of only adding the child menu item "Siena" at the fourth level after it has imported record 1.

How can the import process be configured to create menu levels correctly?
Accepted Answer
Accepted Answer Pending Moderation
Hello Carl,
I see the issue with the import and the reason for it. Let us take your first record, You have path as "Constituency/England/South_East/Hampshire/Aldershot" and for the whole path alias is set as Aldershot in your import file. RO CSVI separates the path with / and reads it as each single item and inserts into the database. So "Constituency/England/South_East/Hampshire/Aldershot" will be read and inserted as 5 different entries in database. When storing a menu, Joomla set the alias as path. So for all these 5 entires alias is "aldershot" and in turn path is also "aldershot". You need to remove the alias field in your import file so RO CSVI uses the path as alias and it is unique for all the entries.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # Permalink
Accepted Answer Pending Moderation
Hello,
Menu import should create two child items "Siena" and "Florence" under one parent "Europe/Italy/Tuscany/". When i ran import with a test file with your path, the menu is created correct. See attached screenshot. Can you send us your import debug log and import file to check? To get the debug log check How to collect debug information? document.
Attachments (1)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello Tharuna,

Thank you for your reply and the screenshots. I can see that it worked for you... I am now attaching the files that you requested and 2 screenshots.

I look forward to hearing from you soon.

Kind regards,

Carl
Attachments (4)
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello Tharuna,

Thank you, your suggestion fixed the problem. However, I am now left with the menu item aliases appearing as menu item titles. Is there a way in which I can import the menu item title for each menu item alias?

Thank you and best regards,

Carl
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello Carl,
For title, RO CSVI inserts the last path name for each menu item, so for "Constituency/England/South_East/Hampshire/Aldershot" the first menu item will have "Constituency" as title, the second menu item should have "England" as title, the third menu item should have "South_East" as title and so on. Does that not happen with your import? Can you send me your latest import file to check?
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello Tharuna,

Yes, it happens as you described it. However, I don't want to have the underscores appearing in the titles, but spaces, which are not allowed in the aliases...

Thanks and regards,

Carl
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Sorry, I meant "... which are not allowed in the paths."
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
My apologies, Tharuna. I just discovered that, unlike the aliases, paths do allow spaces in them... So, everything is well. Thank you very much again for your help!

Kind regards,

Carl
  1. more than a month ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
Hello Carl,
No problem.
Yes, path do allow spaces. One other way of having title for each menu item would be having a row in import file for each menu item so for "Constituency/England/South_East/Hampshire/Aldershot" you should have 5 rows like

"path";"title"
"Constituency";"Constituency"
"Constituency/England";"England"
"Constituency/England/South_East";"South East"
"Constituency/England/South_East/Hampshire";"Hampshire"
"Constituency/England/South_East/Hampshire/Aldershot"; "Aldershot"


And i am glad to know that your issues are solved.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Thank you very much, Tharuna! That alternative is useful to know!

Kind regards,

Carl
  1. more than a month ago
  2. RO CSVI
  3. # 9
Accepted Answer Pending Moderation
Hi Tharuna,

Unfortunately, on replacing the underscores with spaces in the menu paths, many errors occurred when importing. They were all "Another menu with the same parent menu has the same alias". As this ticket has already a selected answer, I'll open another ticket for this issues.

Regards,

Carl
  1. more than a month ago
  2. RO CSVI
  3. # 10
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!