drupal Questions

1

I need to create a sitemap page as my Marketing Team requires this page for SEO purposes. They have an old website built with WordPress and it shows the following: How can I achieve this functiona...
Reproachless asked 5/10, 2022 at 7:1

5

Solved

I am working on a Drupal 8 site. This site was working. I recently moved to another machine. It is showing errors like: Recoverable fatal error: Argument 1 passed to Drupal\Component\Dependenc...
Neptunium asked 25/4, 2017 at 10:31

5

Solved

Does anyone know how to use the l() or url() function to create mailto links? I am running drupal 6.
Madiemadigan asked 22/9, 2009 at 13:26

3

Solved

Is there any command or method that I can use to insert the contents of a form (e.g. the user registration form) into a block?
Hepner asked 20/9, 2009 at 12:43

6

I am trying to set drush up on a remote server. (a webserver by a provider) I installed drush with composer via SSH, but when I try to run it, I get -bash: /data/web/myusername/.composer/vendor/d...
Avaavadavat asked 5/9, 2015 at 18:34

13

Solved

I have recently migrated my module to Drupal7 (on PHP Version 5.3.1) and now I am getting following errors: * Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values!...
Emlynne asked 25/1, 2011 at 19:40

10

I am working on a page in Drupal 7 in which I have a number of boxes with text and a photo inside of them. I have the entire box div linking to its content page, but I can't seem to get rid of the ...
Headliner asked 20/3, 2012 at 19:40

4

Solved

In Drupal 7, I could use the following code. if ($_SESSION['messages']['status'][0] == t('Registration successful. You are now logged in.')) { unset($_SESSION['messages']['status']); } What is th...
Disarticulate asked 5/8, 2016 at 11:24

3

Solved

Here is the HTML just before $dompdf->render() and $dompdf->output() are called: <img src="http://www.example.com/images/Logo.png" /> All other invoices display the image fine when viewing...
Cirillo asked 1/12, 2010 at 18:50

4

Solved

I'm making a new theme but have problems loading the css. Though I think it is correct to the documentation of Drupal it doesn't work. I created a folder in /themes/custom/noadin and added the inf...
Vasoinhibitor asked 26/1, 2016 at 15:59

5

Solved

Is it possible to create your own hook in a Drupal module for other Drupal modules to consume? If not, is there a mechanism in Drupal for third party developers to provide hooks? If everything's be...
Cudbear asked 14/2, 2011 at 16:22

7

Solved

I want to enable PHP OPcode caching for Drupal 8 installation. I have the following in Xampp php.ini. However, I still get opcode not enabled. What am I doing wrong?? opcache.enable=1 engine = On...
Leahy asked 5/7, 2016 at 10:24

3

Solved

I have a Drupal multisite that needs to have one database for each site, and want it to run in ddev, but ddev just has the one database by default, named 'db'. How can I get a second database?
Airflow asked 11/4, 2018 at 21:58

9

Solved

I am checking out Drupal 8 and try to generate a link based on the node ID of an article. In Drupal 7 it is something like: $options = array('absolute' => TRUE); $nid = 1; // Node ID $url = ur...
Xanthous asked 14/2, 2016 at 19:20

2

I'm trying to create my own image field formatter. I've followed these instructions (http://www.sitepoint.com/creating-custom-field-formatters-drupal-8/) and right now I have a working formatter wh...
Mezuzah asked 11/11, 2015 at 20:15

4

Solved

I want to be able to disable and then uninstall a module programmatically on my local environment and then easily push that code to prod so everything gets updated. I'm guessing it's something wit...
Reflexive asked 4/12, 2012 at 17:49

4

Solved

I know I can do things like <input name="foo[]">, but is it possible to do things like <input name="foo[bar]"> and have it show up in PHP as $_POST['foo']['bar']? The reason I ask is b...
Sorbitol asked 24/6, 2011 at 14:15

2

Solved

I need to access the id of the translated node, if available for any given node. nid is the node id. It would seem tnid would be the id of the translated node. However, that seem not be the case. H...
Ri asked 9/2, 2011 at 20:28

4

We had some serious mistakes in a PDF uploaded to one of our websites. But after "deleting" it from Drupal, it is still accessible through direct links. Drupal doesn't seem to delete it on its own....
Colpitis asked 3/5, 2018 at 7:45

3

I created a custom module for Drupal 8 that allows the users to choose a Content type in order to add some fields programmatically. How I can create some fields (text type in this case) and attach ...
Steelhead asked 13/12, 2015 at 14:29

3

Solved

I have installed the Drupal XHProf 7.x-1.0-beta2 module and enabled it on the Modules page of my site. I have turned enabled the use of the module at Configuration -> Development -> XHProf se...
Rabid asked 15/9, 2017 at 11:24

7

Solved

What are Drupal behaviors at all? What type of service layer it offers to module developers? What type of relation it maps to jQuery.ready?
Raleigh asked 15/10, 2010 at 10:33

6

Solved

I am trying to figure out what is the security that Drupal 6/7 uses by default to store passwords. Is it MD5, AES, SHA? I have been unable to find anything.
Poikilothermic asked 17/2, 2011 at 16:27

2

Solved

I have set up a fresh instance of Drupal 8 and installed two modules: Paragraphs (8.x-1.12) Entity Reference Revisions (8.x-1.9) I have also installed the Barrio theme (Barrio 5.5.1.) Then I have...
Triggerfish asked 24/6, 2021 at 14:57

10

Solved

How can I modify or pre-process the <body> tag to add the class body? I don't want to create a whole html.tpl.php just to add a class.
Circassia asked 9/10, 2011 at 1:23

© 2022 - 2024 — McMap. All rights reserved.