How do I get views to show comments on a per node basis?

Hello, I have a view that lists nodes of a given content type. When I add the fields 'Comment Statistics: Comment count (Number of Comments),' 'Comment Statistics: Last comment time (Most recent comment),' and 'Comment Statistics: Last comment author,' it displays data from all the comments on the site in each listing. What I want is for the comment count, last comment time and comment author to refer only to those comment items associated with each node in the list.

How specify drupal site directory with DDEV for local installation?

The instructions at https://www.drupal.org/docs/official_docs/en/_local_development_guide.html say to execute the following commands to create a new Drupal application (after ddev has been installed):

# Replace my-site-name!
export SITE_NAME=my-site-name
composer create-project drupal/recommended-project $SITE_NAME
cd $SITE_NAME

And it says that this "will create a new directory and populate it with Drupal (and is dependencies)."

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

The requested URL was not found on this server.

Hi,

I am not a techie guy.

Today I installed Drupal 8 for my new website.

www.sahajach.in 

Homepage is working fine but when I click on any other links it gives me below error...

Error

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I don't know about coding an all. Could you please help me to solve this issue?

Thanks in advance

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

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x