Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7038273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:38:56+00:00 2026-05-28T01:38:56+00:00

I would like to use the node-menu (see image) on a page in Drupal.

  • 0

I would like to use the node-menu (see image) on a page in Drupal.

enter image description here

Is this possible and, if yes, how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:38:57+00:00Added an answer on May 28, 2026 at 1:38 am

    If the page you are referring is a custom page output from your module, and “mymodule/page” is the path for that page, for which you want the tabs “View” and “Edit,” then you should implement hook_menu() using code similar to the following one:

    function mymodule_menu() {
      $items = array();
    
      $items['mymodule/page'] = array(
        'page callback' => 'mymodule_page_view', 
        'access arguments' => array('view mymodule page'),
      );
    
      $items['mymodule/page/view'] = array(
        'title' => 'View', 
        'type' => MENU_DEFAULT_LOCAL_TASK, 
        'weight' => -10,
      );
      $items['mymodule/page/edit'] = array(
        'title' => 'Edit', 
        'page callback' => 'mymodule_page_edit', 
        'access arguments' => array('edit mymodule page'), 
        'weight' => 0, 
        'type' => MENU_LOCAL_TASK, 
      );
    
      return $items;
    }
    

    If the page you are referring is a page that is shown at example.com/mymodule/page, and that should show what you see at example.com/node/7, then you can implement the following code, in Drupal 7:

    function mymodule_url_inbound_alter(&$path, $original_path, $path_language) {
      if (preg_match('|^mymodule/page|', $path)) {
        $path = 'node/7';
      }
    }
    

    The equivalent for Drupal 6 is writing the following code in the settings.php file:

    function custom_url_rewrite_inbound(&$result, $path, $path_language) {
      if (preg_match('|^mymodule/page|', $path)) {
        $result = 'node/7';
      }
    }
    

    I didn’t write the symmetric code for hook_url_outbound_alter(), and custom_url_rewrite_outbound() as I suppose you are not interested in rewriting example.com/node/7 to make it appear as example.com/mymodule/page, but you are interested in making appear example.com/mymodule/page the same as example.com/node/7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Drupal 6 web site and would like to use a node
I would like to use something like CLR Profiles on .Net 2.0 to see
<xsl:apply-templates select=element[child='Yes']> Works fine but I would like to use <xsl:apply-templates select=element[$childElementName='Yes']> so I
I would like to use MySQL with Node.js on Windows. I have tried to
I would like to insert an image to a TreeView node label. I can't
I am trying to use Embedded Javascript renderer for node: https://github.com/visionmedia/ejs I would like
I would like to use Node.js to develop a website. I've seen a lot
I'm developing a server with node.js and would like to re-use the index files
I would like to run node with a low privileges user, is it possible?
I would like to use the attr() method on a html node, which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.