In Drupal main menu I am creating a menu item. In the path field I want to specify div id instead of path of the node. Is this possible.
Div id in Drupal menu items
81 Views Asked by user1648021 At
2
There are 2 best solutions below
0
Nathan Plowman
On
This wouldn't be possible out-of-the-box, but you should be able to pull it off by using the Menu Token module. https://www.drupal.org/project/menu_token
Once you enable the module, you can use a token in your path for the current page, and then append your fragment to it. For example: [current-page:url]#your-element-id
Related Questions in DRUPAL
- Drupal image styles DivisionByZeroError
- Drupal: MQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user when accessing any page with a form
- How can I add taxonomy to uploaded files through an api in Drupal 10
- How to retrieve taxonomy term name in url instead of id in a drupal view?
- Save button not displaying in drupal 9
- how to do ajax callback in custom block, which will fetch records from database dynamically in Drupal 10?
- Why are my form fields, built using Drupal Next.js Webforms, not displaying the Help Text?
- Multiple replacement / substitute NGgram string SOLR 8.6
- Drupal 9 Bartik (default theme) carried over from old Drupal seems to have previously worked but no longer renders HTML properly
- Getting no State error with simplesamlphp library v 2.13
- Using the Drupal Cache API for Drupal Entity Caching
- drupal version issue drupal 8 to drupal 10
- Why does my pure CSS parallax scrolling stop working on completion of page loading in Drupal 9
- Getting the value from a multi-select list PHP in Drupal site
- Parent menu link opens children when clicked, instead of going to link (Drupal)
Related Questions in DRUPAL-THEMING
- Drupal 9 - How to output field value from the 'Basic Page' content type into webpage sidebar using block.html.twig
- Drupal 9: dd(), ddm() or drupal_dump() missing
- How to apply a CSS style on mobile navigation?
- How to apply a style with on the mobile menu?
- Print user role when submitting comments in Drupal 8
- How to use Drupal 8 logger within the .theme file
- Drupal custom theme info.yml files crashes site
- Add js script to drupal
- Where does the data go from the cropper API in drupal 8 and how do you access it?
- Drupal 9 - Message and message statut system blocks are not displayed
- Basic Drupal / Bootstrap practical question - overriding a color for a region
- The libraries of my customized theme cannot be loaded - Drupal 8
- Adding a Entity Reference in a Drupal 7 Theme
- How can I prevent one template from displaying cached values?
- Rendering Issue in header.html.twig file path in page--front.html.twig
Related Questions in DRUPAL-NAVIGATION
- Drupal7: Some of the main Menu links not showing if not logged in
- How to close the collapse menu automatically when I click on "Search"?
- Drupal 7 rebuild_menu, drupal crashed after module installation
- Front of Drupal Admin Menu Bar is Suddenly Showing Unwanted Items
- Show secondary menu on custom page in drupal 7
- Menu Token Drupal 8 alternative
- Div id in Drupal menu items
- Showing the correct menu a page belongs
- Drupal Views and Menu Block on a Multilingual Site
- Drupal 7 custom menu rendering
- Drupal Showing (2) navigation menus after updating to latest Drupal
- Menus in certian sections
- How do I output a single menu link in drupal 7 knowing it's $mlid?
- Corrupt Drupal menu
- drupal 7 menu return global results
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes and no. You couldn't do just
#divid, in path, but you couldnode/19#dividand even<front>#dividif needed.