Antimatter Theme - Modify Header Links

On antimatter theme, when i create a folder into directory structure /user/pages, automatically it creates a link on top header.

So, the link it is by default routed to that folder.

But, what i have got to do if i want to modify top header links ? (i want and blog link that must forward to blog.mydomain.com)

Quickest way: open user/config/site.yaml and add at the bottom of it

menu:
  -
    url: 'http://test.com'
    text: test2

Hi Flavio, thank you really much for your help;
it worked immediately, but i would like to know how i can give an order to it (it’s appearing at the right part, and i want to be between 03 and 05)

Thanks in advance

Due to how Antimatter is built, you cannot do this out of the box. You can of course edit the theme (maybe using Theme Inheritance http://learn.getgrav.org/themes/customization#theme-inheritance) and edit the partials/navigation.html.twig file.

You could just hardcode the navigation you want there, or do some fancy things like adding a url property in the yaml frontmatter of a page, and do <a href="{{ page.header.url ?: page.url }}"> in your customized template navigation twig.

In this way those pages with (for example) url: http://test.com will be redirected to the specified url.

An easier option would be to create a dummy page so you get the menu where you want it in the order you want, then set a redirect in your site.yaml file for that route.

Hi rhukster, thanks for your answer:
can you give me an example to accomplish that?

Actually in the 0.9.41 Grav release I added the ability to add a simple redirect in the page header, so:

title: Page Title
redirect: http://test.com

Nice, really nice, you are the best… waiting for paid version of admin to give you a really nice support to this project, we love it!

Another question: there is a way to show the content of the link in the same theme without exiting from it ? (like the grav forum), maintaining the navigation bar on top

Well the redirect can also be an internal page if that’s what you mean:

title: Page Title
redirect: /my/internal/page/route

no, no, i want to mantain the top navigation bar but with the content of another page, like the forum (same navigation bar like the website but forum content)
Schermata 2015-09-20 alle 20

What page though? A non-grav page? you want to pull it into the Grav site? The forum on this site is just a grav page that has some JS in it to pull display the forum. I guess you could have a Grav page with an iframe in it to load content from another URL, but you can’t really just show something there wrapped in Grav.