This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

menu item children not rendered in main navigation

In bartik theme, the menu system does not display children of main menu even if they are created.

If a sub-menu is created , ie. sub menu of main home menu:

__ Main navigation : Name= Home; Enabled = true; Expanded = true

|__ _ Child menu: parent = Home; Enabled = true

Typical html from default drupal 8

[Solved] When update an article , how to set the latest revision to be the default revision

Hi, 

I'm using Drupal 8.7.5 with Content Moderation module installed

When I published an article , then save this article back to draft,  when I update this article (draft) again, the node_field_data table won't change, only node_field_revision table will change(insert a new record).

This is not what I want, what I want is , no matter what state this article is, when I update this article, the node_filed_data table should change.

I guess this can be done by set the latest revision to be the default revision.

How to change the CSS class of the logo when a new message arrives ?

Hi, I have a Drupal 8.7 site with the Message module.

I copied the sub module Message Example to create my custom module.

THE CURRENT BEHAVIOR :

Users can subscribe (Flag module) to the following entities :

- Groups and receive a notification when a new node is created.
- Nodes and receive a notification when a new comment is created.
- Stores and receive a notification when a new product is created.
- Product and receive notification when a new comment is created.

Permissions

Hi!

I have a module with its hook_menu.

I am trying that only the admin users have access to a especific page /send-notifications

This is the hook_menu item and it doesn't even let administrators in:

errors after php7.2 upgrade

Hello,

i have updated my php version to php7.2 and now i get a few errors on my Drupal 7 site :(

I think anything works fine but the error messages appears also on guest users.. And that is indeed a problem..

Unfortunately i have no idea about Drupal and i am a little bit lost at the moment :((

pic from the error screen: Link

Thank you Kind regards

How to change "View" button on content edit form to point somewhere besides the node (SOLVED)

Hello,

I am currently working on a headless drupal 8 project.

We are wanting to change the edit content page (an article for example) so that the view button at the top next to Edit, Delete, and Revisions, to point to somewhere other than the contents node, because our sites frontend is not handled by drupal, it is invalid and won't display correctly for the end user.

I looked at hooks, but as far as I can tell they only allow you to add content to the edit form.

I also tried looking for the twig template for that page but came up short.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions