extrapage can now point to joomla, drupal, ...

This commit is contained in:
SNoiraud 2018-12-30 21:20:37 +01:00 committed by Nick Hall
parent 3096c2b09a
commit 03d0baa2bf

View File

@ -1530,7 +1530,10 @@ class BasePage: # pylint: disable=C1001
while cols <= num_cols and index < number_items:
url_fname, nav_text = menu_items[index]
hyper = self.get_nav_menu_hyperlink(url_fname, nav_text)
if url_fname.startswith('http'):
hyper = Html("a", nav_text, href=url_fname, title=nav_text, inline=True)
else:
hyper = self.get_nav_menu_hyperlink(url_fname, nav_text)
# Define 'currentsection' to correctly set navlink item
# CSS id 'CurrentSection' for Navigation styling.