Closed (works as designed)
Project:
Import HTML
Version:
7.x-1.0
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
19 Feb 2015 at 10:00 UTC
Updated:
19 Feb 2015 at 22:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dman commentedYes 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";
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)