List all the Node ids which do not have images from my domain
I use drupal-7 in my website. I used to write articles and put images in that…
December 30, 2021
In this posr, we will see how to prepare mysql query to fetch user details, its fields, and its alias.
select data.name, data.mail, from_unixtime(data.created),
from_unixtime(data.changed), fname.field_full_name_value
from users user
left join user__field_full_name fname on user.uid = fname.entity_id
left join users_field_data data on user.uid = data.uid
left join path_alias alias on alias.path like CONCAT('/user/', user.uid)
where data.status=1 limit 0,1000;
In above query,
from_unixtime
functionfull_name
./users/<username>
select JSON_OBJECT('name', data.name, 'email', data.mail,
'created', from_unixtime(data.created), 'changed', from_unixtime(data.changed),
'full_name', fname.field_full_name_value)
from users user
left join user__field_full_name fname on user.uid = fname.entity_id
left join users_field_data data on user.uid = data.uid
left join path_alias alias on alias.path like CONCAT('/user/', user.uid)
where data.status=1 limit 0,1000;
Also see Drupal Code to Fetch Active users
I use drupal-7 in my website. I used to write articles and put images in that…
You have drupal 7 image from docker hub, and want to connect tomongo db via php…
Introduction I had to develop a small automation to query some old mysql data…
Introduction There might be a situation when you are doing some changes in the…
Note: I have public URLs of these images, which I want to save. return…
Many times, while administering your drupal website, you must have encountered…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…