While import process menu name are accepted from name of source html file.
Also case for menu is not configurable by default.

So need a patch that allows to configure case for menu title, and source from where title should be accepted.

CommentFileSizeAuthor
#1 import_html-menu_link_title.png49.54 KBdman

Comments

dman’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)
StatusFileSize
new49.54 KB

Yes indeed
A hook exists for that

If you use the import_html_scraping_rules add-on module, you can map a value to 'Menu link title' in the UI
If you are doing your own hook, you can set the value of import_html['link_title'][0] = "your title";

import_html menu_link_title mapping

If you use that mapping, you get the menu title from the navigation
Otherwise, you get the page title from the h1 or whatever you mapped it from
Only if you have not mapped either of those obvious options, a default fallback is the filename.

If you are getting the filename from your runs, you should instead try to ensure the page title is being picked up correctly.
(when the page title is too long for menus - which is sometimes is, that's the time to try using the explicit menu title)