Posts: 23
Threads: 6
Joined: Apr 2010
I want to show in the menu bar a couple of menu items that link to external pages. They are in the same domain, but are separate applications: my blog and my photo gallery. Ideally they would be separated from the other menu items with a spacer of some sort so that they appear distinct and as a different grouping of menu items.
What I've done is great a dummy page and simply edited the <url> tag to use the external link like this: /blog/index.cgi , with a title tag of "Blog".
For the spacer, I've done the same thing and just deleted the contents of the title and the url tag (which has the side effect of returning the user to the home page if it is clicked).
Is that the best way to do this?
Many thanks,
Nick
Posts: 972
Threads: 27
Joined: Aug 2009
There is no really good way to put any external pages in the menu, so if changing the URL contents works for you go right ahead.
Adding a spacer that way is not recommended. As it will add an empty menu item, meaning an empty list item. That’s not best practise as non-visual browsers will think the list has (just an example) 9 items and might use this information, but in reality 2 of them are empty.
If you must have gaps, the best way to do it is by using CSS.
Posts: 661
Threads: 52
Joined: Feb 2011
I found a fairly easy way to add external links to the navigation through the admin panel. All I had to do is make 2 custom fields (I did it manually and then did it again with the custom field plugin), and then add a few lines to your (Zegnat) drop down menu plugin, and the client can easily add external links. Below is a screenshot and an example website where you can see several dropdowns using external links.
I would make this a plugin but It uses two other peoples plugins as well.
Please let me know if anyone would like the coding I used for this.
Screenshot Of Page Edit:
http://profileyctest.com/fields-screenshot.jpg
Website Example (Test Website):
http://profileyctest.com/
Zegnåt Wrote:There is no really good way to put any external pages in the menu, so if changing the URL contents works for you go right ahead.
Adding a spacer that way is not recommended. As it will add an empty menu item, meaning an empty list item. That’s not best practise as non-visual browsers will think the list has (just an example) 9 items and might use this information, but in reality 2 of them are empty.
If you must have gaps, the best way to do it is by using CSS.
Posts: 2,094
Threads: 54
Joined: Jan 2011
mikeh Wrote:I found a fairly easy way to add external links to the navigation through the admin panel. All I had to do is make 2 custom fields (I did it manually and then did it again with the custom field plugin), and then add a few lines to your (Zegnat) drop down menu plugin, and the client can easily add external links.
I used you suggestion to enhance the navigation of the
I18N plugin. It now supports external links, just create a custom field
link using the
I18N Custom Fields plugin and use it in the page edit view.
See also
here.