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

remove adjustments not working

Hi im trying to remove the order adjustments by code.

i check in the commerce documentation:

https://docs.drupalcommerce.org/commerce2/developer-guide/pricing/adjust...

And i do this:

Sticky Header Menu on Danland Theme

Hello, am newbie to drupal. I installed drupal on my localhost and install Danland for my theme to use. I like the theme as it looks clean and chose this for my project. I am trying to make the main primary menu sticky when scrolling up. Need solutions to make this happen. Thanks

Change the node's link(URL) in a node list.

When I visit a node list page e.g. https://my_site/en/admin/content/my_nodes with default English language all links for each node in the list shown with English prefix "en" in its URL i.e. https://my_site/en/my_node/custom_alias/50 , so far so good ...                      ...      

Why do some keys in a .routing.yml file start with an underscore?

The following is an example .routing.yml file:

example.content:
  path: '/example' 
  defaults: 
    _controller: '\Drupal\example\Controller\ExampleController::content' 
    _title: 'Hello World'
  requirements: 
    _permission: 'access content' 

As you can see, the keys '_controller', '_title' and '_permission' begin with an underscore.

I already figured out, that every key without an underscore under the 'defaults'-key is considered to be a parameter to the controller.

How to add a term sitemap configuration

Hi everyone,

How can I add the XML Sitemap field configuration when I create a taxonomy term programmatically?

I'm using the XML Sitemap module that comes with Drupal 9 core and I've configured the module so that the relevant vocabulary is included in the sitemap.

In order to get an idea, I created a term and tried to see the field as follows:

Adding a "selected" tag to a form select option

Is there a way to tag an option in a dropdown menu as "selected"?  

For example in HTML  <option value="gg" selected="selected">g g: (No Grey)</option>

I've tried to find one but came up empty.  

Pages

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