This is the URL to the route. Under requirements, we specify the permission of the accessing. User needs to have to be able to view the page. Step 6: Clear Cache lando drush cr or drush cr Step 7: Check your module using given path in route file. Amit Kalwar - Jan 9. Amit Kalwar - Jan 8. Create new account Log in. Twitter Facebook Github Twitch. In this article we will discuss step by step Drupal Custom Module Development. Is it possible that those elements are being rendered twice because they're being included twice, i.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 12 years, 5 months ago. Active 12 years, 5 months ago. Viewed 3k times. Improve this question. Add a comment. Active Oldest Votes. Improve this answer. If you want to make it real Drupalish, you should make a theme function that makes the actual HTML, while your menu callback does the logic.
Max Max 1 1 silver badge 8 8 bronze badges. I can't get this to work, there is a missing step somewhere. It always uses the module template file. I cleared all caches. Did you try sathishkumar addition?
You have to tell the theme engine where your file is located, otherwise he will have the behavior in my answer. Paste the new code you tried. And what I don't understand is why do you need to keep 2 versions of custom. It should stay in your module, not in the theme folder.
Thanks max the whole point of the exercise is that I don't need to tell drupal where the file is located it should try the module or the theme folder at the moment is only trying the module folder unless I explicitly tell it which is a bit silly.
Please give path key in theme registry. This just makes it check the root directory for the template? Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
0コメント