This forum is for module development and code related questions, not general module support. For general support, use the post installation forum.

Using taxonomy exposed view filters ends in MySQL can only use 61 tables in a join

Scenario

Site building:

  • Taxonomy: Vocabulary 'Countries' (around 300 terms, one for each country).
  • Content type Office: with a taxonomy reference field to Countries, so you can tag an office with a country.
  • View: showing Offices with an exposed filter on Countries taxonomy.

Front:

  • In the view's page, you filter by 100 countries to get the Offices in that countries.

Result:

Programmatically write contents in a file and download the file as pdf.

Hi,

I have to merge contents from few nodes and write them in a file. I have to then download the file as pdf. Everything needs to be done programmatically. 

I have searched for examples to help me with it, but have not found any helpful ones.

Could you please let me know how to write the contents in a file and then let a user to download the file as pdf?

Thanks,

Programmatically write contents in a file and download the file as pdf.

Hi,

I have to merge contents from few nodes and write them in a file. I have to then download the file as pdf. Everything needs to be done programmatically. 

I have searched for examples to help me with it, but have not found any helpful ones.

Could you please let me know how to write the contents in a file and then let a user to download the file as pdf?

Thanks,

Migrate MD5 password to drupal hashed password using custom migration module

I have a website in core php with 'users' table that contains simple md5 encrypted password. I want to migrate those password and convert them into drupal hash password.
For e.g. md5 pass: 89fc9bf09b4025ce28c67cb33146d61a
and after migration password will be stored like this: $S$EIMxgxYxwUxrj.uWOr9c4WSQiCvOzASdJUBhVfg8Fsa8zHitUUtq

I tried below code in .yml but thats not convert the encrypted password to drupal hash

Migrate MD5 password to drupal hashed password using custom migration module

I have a website in core php with 'users' table that contains simple md5 encrypted password. I want to migrate those password and convert them into drupal hash password.
For e.g. md5 pass: 89fc9bf09b4025ce28c67cb33146d61a
and after migration password will be stored like this: $S$EIMxgxYxwUxrj.uWOr9c4WSQiCvOzASdJUBhVfg8Fsa8zHitUUtq

I tried below code in .yml but thats not convert the encrypted password to drupal hash

How move in Twig behind object?

I wish customize template for private message. In template I print with kint

{{ kint(content.owner.0) }}

and I got this

content.owner.0 array(6)
→'#user' => Drupal\user\Entity\User(28)
contentsStatic class properties (14)Iterator contents (20)Available methods (154)
→protected values -> array(17)
→'uid' => array(1)
'x-default' => string(1) "1"
→'uuid' => array(1)
'name' => array(1)
'x-default' => string(6) "username"

how can I move to "name" value?

Pages

Subscribe with RSS Subscribe to RSS - Module Development and Code Questions