How to export view data

Hi!

I'm using the "Views data export" module to export my view in XLS format and I have a problem: The user have to filter the date (or any field of the filter) before export the data. For do this, my view have 2 sections:

How to get element id from the pager extender

I have two parts in one page.

Each is a table of query results with pager. This is verified to be working well as an individual page.

So there will be 4 different parts in the render array

Table 1
Pager 1
...
Table 2
Pager 2

With only one pager on one page, element id is not a problem (it is default 0)

But How do I get/set element when I have multiple pager elements on one page?

I see there is a method getElement on the PagerSelectExtender class .... but I cannot figure out how do I get to call it?

Google Analytics report from AB Test

Hello, may someone please care to assist with the output of my Drupal AB Test setup.

I wanted to follow a simple AB Test UI setup for which I:

- Created an AB test UI on Drupal 8

- Created a custom dimension on Google Analytics, copied the JS code and pasted it on Drupal under Config>>System>>Google Analytics under Advanced settings

var dimension14Value = getTestDataForUser();
ga('set', 'dimension14', dimension14Value);

custom rule action help please

I use the rules module, and I need to execute custom php code when the rule "after user is updated" is triggered.

I followed the steps described here
https://codimth.com/blog/web/drupal/how-create-custom-rules-event-drupal-8

and managed to get as far as being able to run PHP code, but I'm unable to reference the user that has been updated.

I guess I need the right contextual variable.

The example code looks like this

How to automatically fill in the subject in the contact forms ?

I have a website with Drupal 9 and I have created 2 types of contact form. I disabled "Subject" in "Manage form".

I want the fake "Subject" field not to be displayed in the contact form and I want it to be filled in automatically.

How to automatically fill in the subject in the contact forms ?

There is nothing in the contact form settings to enter static text in the subject field.

Any way to upgrade to 9 with Apache 2.4.6

My server provider set's their servers up using Plesk. There is no plans on upgrading CentOS Linux to a version that has Apache greater than what I have now which is 2.4.6. I know Apache still supports 2.4.6 and keeps updating it. Is there any way I can still do the upgrade to 9 and still keep my 2.4.6? Plesk license doesn't allow for people to do upgrades of the underlying software themselves. All the updates have to go through the Plesk upgrade system.

I need to know what else I can do and pass it on to the server people to see what is going to be allowed.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x