Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I want to show custom-node-edit-links in node-teaser and nodes. But I can't check the actual access permission of the logged in user. In drupal-7-node-templates this was possible via php, but what can I do to check these permissions in Drupal 8 node-templates (via twig).
Hello everyone , this is my first post so if i posted in wrong section feel free to delete it. So my question is how i can make website layout if i have given wireframe ? (D8) :) Thanks.
I'm trying to customize user login form in (/user/login) page and I want to use a hook_form_alter function to add some awesome style and placeholder to each of user login form fields and remove or hide:
"Enter your admin username" and "Enter the password that accompanies your username" description expressions under each of theme.
I added something like below code to my ThemeName.theme:
I like Drupal and its been nice to learn about and get stuck into. Unfortunately I've hit a road block.
Use Case:
The application needs a hierarchical custom menu (Already exists)
The menu needs to be shared as a block within different regions (Achieved) What seems to be the hard parts
1, Render the menu differently in different regions structurally and visually (i.e. a different surrounding css class)
2, Show or hide different nodes in the hierarchy