All Questions

-2
votes
0answers
15 views

Wizard question based theme [closed]

Does this kind of module/theme combination exist? A similar site that I can relate to is: https://en.ryte.com I need some wizard-based theme that collects data not particularly for registration.
0
votes
0answers
22 views

Using Raphaël JavaScript library

I'm trying to use Raphaël with a Drupal 8 website. I'm wondering if there's a step I'm missing, or maybe some other issue, as it doesn't seem to work. I suspect I'm just missing a step in using extra ...
0
votes
1answer
14 views

Rendered markup different than template markup

I am using drupal 7, and the bootstrap base theme to make a simple theme for a website I am working on. I am having issues with Drupal forcefully changing my html5 hierarchy and it's causing the site ...
0
votes
2answers
25 views

Custom drupal module does not appear on the extend page

I have created a custom module, yet it does not appear on the extend page. I have my_new_block.info.yml file in modules/custom/my_new_block/: name: My New Block description: Create own blocks. ...
0
votes
1answer
9 views

How to store your own key-value pairs in Redis using PhpRedis with D7 Redis module

We have the D7 Redis module installed, which is being used as the cache mechanism for D7 caching. That module uses PhpRedis as the underlying library. I would like to use that same Redis instance to ...
-4
votes
0answers
31 views

How do I get the theme name? [on hold]

I am trying to detect the theme used by a certain site. I have already tried all the known methods like searching in the source code and jQuery settings, but it keeps showing the theme name is y2ad. ...
2
votes
1answer
24 views

Is there a generic method to retrieve entity IDs?

I have seen this code suggesting how to return a list of entity IDs: $query = \Drupal::entityQuery('node'); $query->condition('type', $bundle); $entity_ids = $query->execute(); but this ...
1
vote
2answers
25 views

Prevent form regeneration when a callback function is called through ajax

Here is the code for the custom form with a field(field_B) that calls an function through ajax. The issue is that I want the function (MY_MODULE_XYZ_function()) to be executed only once, when the ...
1
vote
1answer
10 views

How do I add an extra “Add content”-link to the admin toolbar dropdown

I am trying to add some improvement to the workflow of the webmasters. Right now they have to click "Content", and then click once more on the "Add content" button. Since I am working with the "Admin ...
0
votes
0answers
10 views

Menu link title used as page title on first access

Simple problem: I defined some main menu links under /admin/structure/menu. Whenever i access the linked page, the page title shows the menu link title and not the title set in .module. Every access ...
0
votes
0answers
11 views

Rule on bulk webform submissions update

I have a custom view with webform submissions with views bulk operations field. My target is when I run a bulk operation to the submissions that I have selected then a rule must be triggered which ...
0
votes
1answer
28 views

Remove an item from $form_state in an ajax callback

I'm using this form api example: AjaxAddMore. I want to add a "remove button" for each indiviaul element, in order to remove an item but not the latest. Thouse are my changes: ... $form['...
0
votes
1answer
31 views

Drush: How do I change the Drupal root

My Drush commands doesn't work because my Drupal files are in another directory than the one set in Drush. Everything is set up to this path so I can't just change the folder name. Drush status [..]...
1
vote
0answers
16 views

Views Table with Aggregation, total values counted per option

I'm setting up a view of event registrations. Each registration will be allocated to 1 of 3 workshops at two different times in the day. I'm looking to output the total number of allocations per ...
-2
votes
0answers
10 views

comments links not rendered after ajax

I loaded comments via jquery ajax .load() and include it to div, comments loaded fine but links such as "reply, edit, delete" not loaded, anyone has an idea what's the problem?
0
votes
0answers
14 views

How to create product from image

I'm quite desperate right now and pretty newbie with Drupal. Anyhow, I wan't to develop my WordPress site and change this current system to Drupal. So now i'm able to set user specified galleries and ...
0
votes
1answer
30 views

How to chart data stored in a database table (dynamically) in Drupal 8?

I found these instructions for using the Charts module to display data from a database for Drupal 7: https://www.drupal.org/docs/8/modules/charts/charts-howtos/chart-some-data-stored-in-a-database-...
0
votes
1answer
22 views

Drush command to run cron won't work in Crontab

I am attempting to run two Drush commands from my crontab: # m h dom mon dow command */2 * * * * drush -r /path -l https://www.domain.com/ cron */2 * * * * drush -r /path -l https://www.domain.com/...
0
votes
1answer
46 views

Add class to {{ link }} twig attribute

I'm trying to apply a button class to the {{ link }} attribute in code below. <span{{attributes}}><a class="usa-button"{{ link }}</span> It displays correctly however the markup is ...
0
votes
1answer
28 views

Convert address to multi value during migration

I have a migration that imports data into my address field and it works perfect. field_address/locality: - plugin: get source: city field_address/postal_code: - plugin: ...
0
votes
3answers
34 views

Using MYTHEME_page_attachment_alter does not alter the favicon

Based on other similar stackexchange questions and documentation, I've implemented the following in the MYTHEME_page_attachment_alter function in MYTHEME.theme file to change the favicon based on the ...
0
votes
1answer
28 views

why filters are not working in view query alter?

why filters are not working in view query alter here is my code what i am doing wrong: if ($view->id() == 'answer_key_form' && $view- >getDisplay()->display['id'] == '...
0
votes
0answers
6 views

Drupal Commerce membership for family members

I'm attempting to setup Drupal 7 to sell memberships. The basics are all setup, and selling roles seems to be working fine. However, I'm getting stuck on additional memberships for the user's family. ...
0
votes
0answers
30 views

Programmatically Importing Nodes from one page to another another

I want to import node that are on one page to another programmatically. Have tried to do by two method $my_view_name = 'view name'; $my_display_name = 'display name'; $my_view = views_get_view($...
0
votes
1answer
9 views

main menu disappears only on home page

I have a site online engcorrect.net and for some reason my menu on my homepage disappears. On all other pages, it shows. The weird thing is that on my localhost (local machine) it shows correctly but ...
0
votes
1answer
30 views

How to tell if a menu link is route:<nolink> or not?

Trying to theme a menu in Drupal 8, running into a case where we need to add classes on certain links. In the case of a menu link that is route:<nolink> we need to not add any class at all. ...
-1
votes
1answer
26 views

Changing how Adding Existing Node (from another content type) works

I have a Drupal 8 site with two content types: Recipe and Ingredient, and I have Ingredient as an inline entity form of Recipe form. So, when I am creating a new Recipe, I get this: My question is: ...
0
votes
1answer
26 views

Show terms in view filtered from another view

I have two views, first one is block, second one is page. I have vocabulary, let's call it "food". In the food vocabulary we have that hierarchy: Fruit Apple Banana Meat Chicken Pork Both views ...
1
vote
0answers
40 views

Add routing config via admin UI

I have a Drupal site with a specialised search query page that accepts about a dozen arguments as URL query parameters, most of which are optional. Simplified routing YML file looks like this: ...
-1
votes
0answers
11 views

Advertisement module with number of visitor clicked on it [closed]

In drupal 8, is there any advertisement module which generating report of number of visitor clicked on it. On every page refresh it should show any random advertisement from the list i added. I have ...
0
votes
0answers
24 views

Can we run multiple Ajax Submit Buttons on one custom form with different ajax callbacks?

Because In my case, the first ajax button works however next doesn't and it reloads the page. $form['step_1']['submit'] = array( '#type' => 'submit', '#value' => 'Search', ...
-1
votes
0answers
12 views

Serialization error on views csv export [closed]

I am trying to use the VIews data export and CSV serialization modules. When I press the export button the page becomes blank and the following error appears in logs: Symfony\Component\Serializer\...
0
votes
1answer
20 views

Why cannot I get the path of a video? [on hold]

I can't manage to get the video link of a media, I can achieve this with a picture but with videos it doesn't work. This is the code I am using. function slider_get_uri_by_media($media, $style = '...
-3
votes
0answers
19 views

Conversion tracking

Drupal 8, latest webform module version I've been scratching my head for some time now and searching the net for straightforward instructions on how to perform conversion tracking on successful form ...
1
vote
1answer
18 views

Where is the `Drush` command specific documentation?

To be more specific than the title, I want to know what drush cim exactly does, like: where is the drush cim command specific documentation? Does cim command remove the files after they are imported, ...
0
votes
0answers
13 views

Programmatically add field collection item (child) into a existing field collection item (parent)

I have a nested field collection item, field_collection_parent which contains one field_text and a field collection field_collection_child contains two text fields(field_a and field_b). Now I'm ...
-3
votes
0answers
13 views

Updated drupal and now get webform validation error [closed]

I just did a update that drupal told me to do and got this error now when I go to my site. Parse error: syntax error, unexpected T_FUNCTION in /home/content/03/6332103/html/sites/all/modules/...
0
votes
0answers
12 views

Adding product image to ubercart checkout form

Has anyone able to get through altering/overriding the core cart checkout form? Any hooks that can help? I am trying to add a product image to Ubercart /cart page ie. CartForm.
0
votes
1answer
49 views

How to rewrite the field of a view with Twig

I created a view with the machine name cgv_product. This view contains the fields "Product Name" and "Custom Text". In the "Custom Text" field, the {{ name }} Twig code is available to display the ...
0
votes
0answers
24 views

Characters Converted to HTML Entities in Submission Email?

I have a webform in which I've developed a custom module to add a value to a hidden element based on inputs received by the person submitting the form. I also have an email handler specified that ...
0
votes
0answers
17 views

Rules 301 redirect?

I have a rule which checks for URL segment and redirects to homepage. It works good but redirect is 302, not 301. Is it possible to use somehow 301 redirect or that can be achieved only via .htaccess?...
5
votes
0answers
31 views

After implementing hook_node_access, how to stop node from appearing in view?

In Drupal 8, I implemented a hook_node_access function in my module to control access for a certain role under certain conditions and it works fine. However, all of that content type are still shown ...
3
votes
1answer
19 views

Migrating body text from 7 to 8, markup displays until edited and saved

I'm migrating nodes and have run into a problem with the text formats when mapping our old site's input formats to the new site's input formats. (We're simplifying!) Relevant yaml: body: ...
-1
votes
1answer
10 views

How do I attach JS and CSS on Slick Views

I would like to attach a CSS file and a JS library on Slick Views module from a custom module. Is there a hook function for Slick Views or any solution?
0
votes
2answers
52 views

Send email to all users that are tagged with the same tag a node is when created

There is a lot of similar questions here but I am having a hard time wrapping my head around this. I have a taxonomy term reference field called field_category. This field is available on user/*/edit ...
0
votes
0answers
19 views

Programmatically create master/detail forms

I want to create a master/detail form in my custom module using form api and ajax. I have three content types: CT1, CT2 and CT3. CT1 is the master, and CT2 and CT3 are details of CT1 (they have a ...
3
votes
1answer
20 views

Undo/redo drupal console generate:plugin:block?

I ran drupal console generate:plugin:block and made a mistake. I'd like to run it again, but I get this error: 'block' entity with ID 'my_block' already exists. I've removed the source file that ...
0
votes
1answer
12 views

Form #after_build is not working for PHP 7x

I'm using #after_build in one of my custom module form like follows $form['profile_image'] = array ( '#type' => 'managed_file', '#after_build' => array("change_pic"), ); and the ...
1
vote
1answer
11 views

Change Aegir Log Level?

The log messages for tasks seems pretty uninformative when you have an error. Is it possible to change the log level for task logs in Aegir? If so, how? Thanks!
2
votes
1answer
18 views

How to get more info on error during clone?

When cloning one of my sites I get the following error: SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='...

15 30 50 per page