Sorry folks - I'm sure it's a no-brainer, but I can't get my head around it .....
I want to create a Primary Links menu item that links back to my home page - a 'Home' button.
However, when I enter the internal link /drupal as the path for this menu item, I'm told that it is invalid or that I don't have access to it. The same link works fine elsewhere (eg text in a page linked to /drupal).
However, full link such as http://localhost/drupal/ works fine as the path. What am I doing wrong?
To shed more light on the situation: The menu item will appear as a 'tab' at the top of the page (shouldn't make any difference).
I also have the 'Front Page' module installed to make my home page slightly different to other pages. I have found that an internal link to '/front_page' works, but this doesn't seem quite right to me and the url will reflect the front_page path.
The breadcrumbs link to Home works... and it seems to be linked simply to /drupal. Why doesn't this work in the menu item?
Comments
alias path
This is just for the home link I am assuming. I am not for sure 100% since Drupal tricks are endless.
Just to cover the subject for future forum visitors, a few little things to try, depending on installed modules(standard disclaimer, lol).. mainly, clean URLs, path(core module) and pathauto(contributed module).
Each alias also has a 'system path' such as node/2 , node/532 , node/(any number) is the system path.
Using pathauto these can be found in the URL alias list at (administer > Site building > URL aliases > List)
Using path, these can be found by editing the node to see the path and edit the path.
The system path works in most cases for 'menu link path', unless it's a module hardcoded path such as 'contact' or 'guestbook'
If it is the front or home page, this one is a little different.
If using the frontpage view in 'views'(contributed module) the 'menu link path' to the front page will still be
<front>even though the default path in 'site information' is frontpage or node.If using the front_page module the 'menu link path' will still be
<front>.Unless you are using a 'redirect' in the front_page settings and have a path entered there, then you would use the system path for your menu link.
Thanks for solving my problem
Thanks dbeall - putting in
<front>for the path fixed the problem.Although I can't pretend to understand everything else you explained in your post (most of it rings a bell...), thanks for taking the time to unpack some of the mysteries. I'll never understand how you figured that out or why
<front>works, but hey - I'm just glad that you're willing to help the rest of us out. You rock!font page path
Sometimes it's difficult to document everything so it will be easy.. I try..
The more you use Drupal, the more you will see references to
<front>as the path for the front or home page.It is used throughout the system, such as the block configuration.
( administer > Site building > blocks ), each block has a configure link to the right.
In the configure screen there is 'page specific visibility settings' and one of the paths available is
<front>Front tag
I think you've done well explaining it - it's a problem at my end with comprehending due to lack of knowledge about drupal and coding of any kind. I'll keep learning, and thanks to willing forum participants such as yourself, the learning is all that much more pleasant.
I'll keep an eye out for that 'front' tag in various places. Thanks again for the heads-up.
Hello guys, So far, I managed
Hello guys,
So far, I managed to enable pathauto and I can see the internal paths for all the existing nodes created on my site. However, I have a problem for assigning a primary link menu when it comes to specific users. In particular, every time I entered, say, "user/uid/edit" or "user/%/edit", I get an error message saying the path is invalid or that I don't have access to it.
Do you think I need to change something here? I would have thought this to be a simple matter.
Let me know what you think.
Thanks
T.