Top new questions this week:
|
I’m implementing for nodes hook_ENTITY_TYPE_access() and hook_ENTITY_TYPE_create_access() for a project and they are not fired even after cleaning the cache many times. I checked the code and there is …
|
I have a module and I need to set a simple cookie (if not exists). And after each request I need to read the value of the cookie and maybe update. I have read many articles and tried many ways but no …
|
According to Symfony docs, doing shared: false on a service should mean that each time you call a service, you get a new instance. However, this doesn’t seem to work for me. I am using Drupal 9 which …
|
I’m trying to create a card grid component using paragraphs. I have a reference entity which references different card types with unlimited cardinality. I’m able to pull the values from the …
|
I am building a site with Drupal 9 and Drupal Commerce 2 (Drupal Commerce Kickstart). The site is complete and I have already entered all the products via Feed (there are over a million). Now I’m …
|
I’m switching a website from Disqus back to the regular Comment module. After installing the module, I can configure it just fine as an administrator and add comments on some dummy articles. But when …
|
Greatest hits from previous weeks:
|
how to name your projects project_name-7.25-1.0-alpha project_name-7.25-1.0-beta1 project_name-7.25-1.0-dev2 project_name-7.25-1.0-rc3 project_name-7.25-1.0-stable4 project_name-7.25-1.0-unstable5 …
7 |
|
|
asked by Mau Score of 15 |
|
|
|
We’ve recently had a few problems with our server, which seem to have been all patched up by myself, my host, and the cPanel team. However, since then we have been having problems with sites/default/…
|
I need to get the path for public:// at runtime. Is there a function I can use to get it?
|
I’m developing a site using Drupal 8 beta-14. I’ve created a view block of different terms and now I want to display it using code. How can I display it programatically? I used to do it in Drupal 7 …
|
So I have this Node: object(Drupal\node\Entity\Node)[1862] protected ‘values’ => array (size=17) ‘vid’ => array (size=1) ‘x-default’ => string ‘7’ (length=1) …
|
To download and install a module, I run: drush dl module_name drush en module_name -y I put that in a Bash script function, and just call “drin module_name” to simplify. function drin(){ drush dl …
|
I want to use the base path in a Drupal 8 template file. I tried the following, but I don’t get the correct result. {{ app.request.baseUrl }} {{base_path}} What I need is the absolute path to the …
|