Hide a draft status(workflow) content from a Role in Content listing view and also invidual node view

I am working with workflow want to hide the Drafted status content from a specific role. The content view listing view also how can i hide the content based on role.

I have a content listing view default one. Where i list down a content type. For a particular user i want to hide the all content who state are Draft from that view so draft content will view by that person from a role.

Feeds

I have installed the feeds module for importing CSV files. It ran fine on several tables, but on one it fails to pass the value for an integer field. I don't get any errors back. I made several tests by moving the import value also on a text field but the result does not change.
What should I do to use another module (which one?) Or write a procedure (module) to perform the import?

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

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x