Hi,

I encountered the following problem. I want to create a new menu item and link it to an external url. The url is quit long (it's a search criteria for another site), exceeding the max length of the textfield in menu settings where I need to enter the path.

In order to increase the length, do I need to alter the column size in the database? Change anything in any code?

or is their an easier way?

thanks

Comments

caschbre’s picture

How long is the URL?

You could look at using the url redirect module. You would create your URL (mysite.com/go-elsewhere) and set the redirect to where you want to go. Then in your menu you use your URL.

Anonymous’s picture

Drupal 6 Solution

  1. Install module Menu Inject Block
  2. Create new Block
  3. Add menu link to Body:
    e.g. <div><a href="LONG URL>{menu link title}</a></div>
    Note: If you don't wrap link in <div> Drupal will wrap in <p> and add unnecessary margins.
  4. Create Menu Item
  5. Set path to <block> and choose the Block from select menu at bottom.

Done!

colan’s picture