How do I get it back? When I was in the Menu portion of administration I deleted it thinking it would effect only the theme I was working with. How do I get it back though? I've attempted to create a new menu with the same name, i assumed this would not work and my assumption was correct. How do I get it back?

Comments

harry slaughter’s picture

in your favorite mysql client, run this:

INSERT INTO menu VALUES (2, 0, '', 'Primary links', '', 0, 115);

--
Drupal tips, tricks and services
http://devbee.com/ - Effective Drupal

--
Devbee - http://devbee.net/

fresh-off’s picture

for you other newbies to php & DB stuff.. here's how i used Harry's tip:

  • opened up my sites C-panel
  • opened up phpMyAdmin
  • clicked on the SQL querry window
  • coppied and pasted the above code supplied by Harry into the text field/box
  • clicked on "go"
  • refreshed my site
  • patted myself on the back, as i'm one step closer to being a programing genious!
  • just kidding on that last step.. sort of.

there are other ways to do it i'm sure, but thats what i just did. thanks harry.

a lot of the documentation on this site is frusterating and goes over my head... so at this point i can only contribute real small things like this.. oh well.. maybe there's somebody else out there as green as me.

sepeck’s picture

Without people like you who take the time to respond back, the documentation will always be over new people's head. So feel free to write docs pages, etc on areas you don't feel are clear enough. Feel free to join the docs team and help out. Everyone starts out somewhere so writing while learning is an excellent starting point.

With Drupal you are exposed to the database (MySQL) and the PHP code stuff and often need a passing familiarity with web servers (Apache/IIS). Drupal doesn't really try and hide or protect the site admin from these technologies like some other CMS's. So there are different technologies to learn and become familier with in additional to Drupal if you are not already familier with them.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

joancatala’s picture

It worked perfectly! thanks a lot.

mlncn’s picture

Thanks to this issue thread:

#24 submitted by macgirvin on February 2, 2006 - 22:55

In fact I just discovered quite by accident... instead of going to administer|menus, I clicked the wrong menus link and ended up had at administer|settings|menus, and there is indeed a selector for what menu to use for primary/(secondary) links or none at all.

~ben

People Who Give a Damn :: http://pwgd.org/ :: Building the infrastructure of a network for everyone
Agaric Design Collective :: http://AgaricDesign.com/ :: Open Source Web Development

benjamin, Agaric

goitalone’s picture

I tried this query and my primary links is still missing...I tried this in phpmyadmin and mysql administrator with no luck...what could be stopping it from working?

Also, is there another way to get my lprimary links back?

I can't get into my site at all without it.

anthonyjpn’s picture

It worked for me!