ElkArte Community

Project Support => General ElkArte discussions => Topic started by: Jorin on December 12, 2014, 11:11:14 am

Title: menu entry as link to external site
Post by: Jorin on December 12, 2014, 11:11:14 am
Is there a manual what needs to be done to get a new menu entry with a link to an external site? I know TE wrote something like this for the impressum page. I installed the package from here (http://www.elkarte.de/community/index.php/topic,28.msg340.html#msg340), but no meny entry shows up.
Title: Re: menu entry as link to external site
Post by: Jorin on December 14, 2014, 06:51:28 am
I also tried to work my way through Menu.subs.php and those miracles called arrays. But it's like a mystery to me. All I want is to change the help entry in the menu to lead to http://elkarte-erste-schritte.de. This would be so great for my users. :-[
Title: Re: menu entry as link to external site
Post by: emanuele on December 14, 2014, 05:28:27 pm
For the time being[1] it should be enough to change the href value from:
Code: [Select]
					'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
),
to:
Code: [Select]
					'help' => array(
'title' => $txt['help'],
'href' => 'http://elkarte-erste-schritte.de/',
'show' => true,
),
in Subs.php.
Until some more sophisticated way is built
Title: Re: menu entry as link to external site
Post by: Jorin on December 14, 2014, 11:35:23 pm
Great! And so it opens in a new tab:

Code: [Select]
					'help' => array(
'title' => $txt['help'],
'href' => 'http://elkarte-erste-schritte.de/',
'target' => '_blank',
'show' => true,
),

:D

Edit: Hey, and so I can easy add new menu entries! Just copy this code and my wish is fullfilled (http://www.elkarte.net/community/index.php?topic=2204.0).  :)  I rearranged the menu entries too (recent posts on top, help at last) and now it's fine! Thanks!