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

DrupalWebTestCase ending with error 500

Hello,

I am trying to create test for my module. I created .test file in module folder and added corresponding content into .info file. Code of .test file is following:

Good example/tutorial for buiklding a full main menu in a module?

I see lots of examples of how to create a single menu item from the .links.menu.yml file and can do that but am trying to figure out how to extend that to building a complete main navigation menu with x level1 menu items and each of those then has varying numbers of sub-menus.

I'll scour github but if anyone has a tutorial they have used please let me know.

Thanks

How to limit access to a group page to the group administrator ?

I created a custom module to create a /group/ID/tasks page

How to limit access to this page to the group administrator ?

If the current user is administrator of group ID 76, he can access this page :

/group/76/tasks

But if he goes to another group, he must have denied access :

/group/89/tasks

https://git.drupalcode.org/sandbox/zenimagine-3076032

How to limit access to a store page to the store owner ?

I created a custom module to create a /store/ID/tasks page

https://www.drupal.org/project/commerce

How to limit access to this page to the store owner ?

If the current user is owner of store ID 76, he can access this page :

/store/76/tasks

But if he goes to another store, he must have denied access :

/store/89/tasks

403 Forbidden error when creating or editing paragraph type of text and image

I am no longer able to update the pages when I have put content of paragraphs type. I can submit if I edit any other type like Rich text but if I edit text and image type I get a 403 Forbidden error saying I don't have permission to access node this on this server. I am logged in as user 1 administrator.

Views Exposed Filters & Multi-value Date Field

Hi, i'm trying to overcome an issue i'm having with Views. I've exposed a Date (no time) field using the is_not_between operator so the user can enter start and end dates. I've tested this with a Date field that stores a single value and it filters correctly. However we've been unable to get this to work with a Date field that stores multiple values.

I'm not an advanced programmer but I can use hook_form_alter to change the field labels etc. That's not a problem.

Pages

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