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

Drop down menu is refreshing my page.

Hello and sorry for my bad English. I am using Drupal 8 and i want to make a menu with categories. The menu title has to be CATEGORIES and when someone click on it, the menu has to show the categories with a drop down. So i've created categories. Then i created a menu called - CATEGORIES and i marked "show as expanded". In the menu link i added - route:<nolink> . So now i have Categories menu with drop down listing categories, but when i click on it, the page is refreshed. I dont whant the page to be refreshed everytime i clikc on CATEGORIES.

8 - Taxonomy overview page custom access

Hello. I'm trying to restrict access to the /taxonomy/term/[ID] pages on my site but I can't get it to work. I've tried two approaches:

1) adding a route subscriber to alter the route "entity.taxonomy_term.canonical" in order to do $route->setRequirement(...). This seems to work for other routes than the taxonomy term overview page but not for that page.

How to re use add form to edit records in a database.

Hello Friends,

I currently have a form that I am using to add records to a table in a database.

The route looks as follows:

business_listing.add_record:
 path: '/admin/business-listing/add'
 defaults:
   _title: 'Add Listing'
   _form: '\Drupal\business_listing\Form\ConfigFormBusinessListing'
 requirements:
   _permission: 'access simple page'

My ConfigFormBusinessListings.php looks as follows:

Acquia Search API Solr : Seach issue with chinese words

I am using below modules.

My Solr Version is 4.5.1

It has issue with Chinese word search partially.

When we search with: 台湾东部岸外海域 发生5.7级地震 it works, but partially it is not working 台湾东部

Drupal structure and How to check Drupal 7 Passwords with C#?

I'm working on converting a Drupal 7.63 web application to asp.net core. I don't have experience with Drupal / php so am wondering how I should check the hashed passwords in c#. I know drupal uses SHA-512 but am not sure where it gets / stores the salt and how many iterations it uses. Also, all of the passwords in the drupal user table have a $S$D prefix.

Code from a module does not seem to run for each user

I created a Drupal module that uses \Drupal::currentUser(); to build a list of people that have the same value for a custom field.  

The code seems to work when I run as the Administrative user.  However if I use an Authorized user it will update the values shown the first time but when I switch to a different Authorized user it still shows the same values as the first Authorized user I logged in as.  

How do I get the code to run when a new user logs in so that they see the information associated with them. 

For reference here is the code I wrote:

Pages

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