2022 Developer Survey is open! Take survey.
10 votes

Exporting fields for content type

UPDATE You might also try Drupal Console's drupal config:export:content:type command. It's description says: The config:export:content:type command Export a specific content type and their ...
user avatar
  • 916
10 votes
Accepted

Import CSV to nodes/entities in Drupal 8 including a UI

I do this all the time, making use of migration configuration entities (provided by the migrate_plus module). Define a migration plugin in your migration module's config/install directory, using the ...
user avatar
  • 1,303
9 votes
Accepted

How does importing a content type work?

To add a field to custom content type you need field.field.node.content-type.field-name.yml field.storage.node.field-name.yml The easiest way for you is create the content type and fields via UI ...
user avatar
  • 1,352
8 votes

How to export users with passwords?

User passwords are stored using a one-way hashing algorithm and cannot be converted to plaintext. In addition, each Drupal site uses a unique cryptographic salt, so that the same plaintext password ...
user avatar
  • 37.6k
8 votes
Accepted

How to migrate multilingual image alt fields from CSV?

I think I've figured this out. You need to define the 'content_translation_source' property on the translated node, so that Drupal knows what language it's coming from. Eg: migrate_plus.migration....
user avatar
  • 196
7 votes
Accepted

Scrape articles from one Drupal site to other?

You do not need to install a module for this. This sort of thing is provided by the Drupal core. It is called an "Aggregator" and you find it as one of the core modules with the following description: ...
user avatar
  • 14.7k
7 votes

How to print the timestamp of date in a Views fields?

There is a way: Go to Configuration > Regional and language > Date and Time > Formats (Tab) Then click "add format" to add a new date format and just type "U" in the textfield. The "U" is actually ...
user avatar
  • 659
7 votes
Accepted

What is the correct way to update existing module's rules programmatically?

You can export the rules configuration via the Rules UI and then implement hook_default_rules_configuration_alter() like this: /** * Implements hook_default_rules_configuration_alter(). */ function ...
user avatar
  • 14.5k
6 votes

Mapping or migrating path alias using using Migrate Source CSV

@Jigar's answer is close but not quite. Here is what I eventually figured out. It should be path/alias and not just path. Also, if you have pathauto module installed it will create the path based on ...
user avatar
6 votes
Accepted

Export Paragraph bundles

Turns out it can be done with the config:export:entity command. drupal config:export:entity paragraphs_type [PARAGRAPH_TYPE] --module="[YOUR_MODULE]" --optional-config --remove-uuid --remove-...
user avatar
  • 235
5 votes

Can I move a webform to another drupal installation?

I'm not familiar with webform_share, but I have had good experience with a module called Node Export, which works pretty well with webforms, and notably with webforms where the form is integrated with ...
user avatar
  • 616
5 votes
Accepted

How can I export all users in a CSV format?

Stick the following in a file named expusers.module <?php /** * Implementation of hook_menu() */ function expusers_menu() { $items['expusers'] = array( 'page callback' => '...
user avatar
  • 14.7k
5 votes
Accepted

Export data to CSV programmatically in drupal 7

@potney i have updated your code.Please check drupal_add_http_header('Content-Type', 'text/csv; utf-8'); drupal_add_http_header('Content-Disposition', 'attachment;filename=csvfiles.csv'); $output = '...
user avatar
  • 1,605
5 votes
Accepted

Feeds importer incremental URL parameter

You want to take a look at the Web Scraper Example. https://www.drupal.org/project/example_web_scraper In Feeds Importer you want to look into the Robots spider setup, which will follow links and ...
user avatar
5 votes

How do I export the list of URL alias into an excel or csv?

This is easy with a query: select source, alias from url_alias INTO OUTFILE '/tmp/url_aliases.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'; If you are good with mysql, you ...
user avatar
  • 13.3k
5 votes

How do I export and import content types (including fields) between environments?

You're on the right track with the configuration export but I am guessing you did the single export option for the content type. Each field on your content type has several configuration items that ...
user avatar
  • 2,844
5 votes
Accepted

How do I export and import content types (including fields) between environments?

Configuration management Deploying content types, fields, views, site settings (everything that is not content) from one environment (local) to another (stage, prod etc.) in Drupal 8+ works by ...
user avatar
  • 15.8k
4 votes

How to add multiple terms to a taxonomy via feeds and tamper

Feed Tamper gives you a feature to import multivalued field data using any separator like comma(,) using implode plug-in If you have csv file like below You need add implode plugin for that field in ...
user avatar
  • 3,362
4 votes

How to export 'Content-Type' data into JSON?

You could use the Forena module (disclosure: I'm a co-maintainer of it) as your 1-stop-solution (using only 1 contributed module) to: Build your custom query to fetch the data, whereas these data can ...
user avatar
4 votes

Automatically import data from Google spreadsheet using feeds module

Sorry, bit late to the party. How I solved this was: Publish the file to the web using the option in Google Sheets' file menu. This gets you a special link to an always up-to-date version with the ...
user avatar
4 votes
Accepted

What happened to the links to import or export a View?

That Views import/export facility is no longer available in Drupal version 8 (within "admin/structure/views") ... A possible way to do similar Views imports/exports in Drupal version 8 is to use the ...
user avatar
4 votes

Mapping or migrating path alias using using Migrate Source CSV

Just tried it out while trying to find an answer to a similar question. Here's how it should look: source: ... constants: slash: '/' process: ... // This parameter should be "path" and ...
user avatar
  • 2,895
4 votes
Accepted

How to migrate multilingual content from CSV to Drupal 8?

Migrate from CSV basics As stated elsewhere, the migration code has only recently (as of 8.2.x or 8.3.x) seemed to settle down and there are loads of old, outdated and incorrect instructions in blog ...
user avatar
  • 2,038
4 votes
Accepted

How to migrate multiple columns to single field in CSV Migrate

It took a while for me to solve the issue. However, I was able to manage the same without having to write additional plugin or module. I solved the issues in two steps: First used the plugin concat ...
user avatar
  • 1,348
4 votes

Export/import users

Export/Importing user tables might work if you're doing some sort of crude one-and-done migration. The caveat is you're going to have to think through everything in the source userbase you want to ...
user avatar
  • 26.1k
4 votes
Accepted

Exclude settings from a contrib module on export

You don't need to exclude the API keys from export; instead, you can set them in code, and then it doesn't matter what gets exported. (...probably. Some modules will not work with this approach.) You ...
user avatar
3 votes
Accepted

hook_context_default_contexts() ?

Here's the piece I was missing: /** * Implementation hook_ctools_plugin_api(). * * Makes module compatible with context 3. */ function MY_MODULE_ctools_plugin_api($module, $api) { if ($module ==...
user avatar
  • 361
3 votes
Accepted

How to set the default values of "Included Export Components" for a Drupal Webform

I remember having to do that once, and though I looked at how the values were initially set, I still ended up using hook_form_alter to change them. I don't remember why exactly, but presumably due to ...
user avatar
  • 348
3 votes
Accepted

Special non-utf-8 characters appearing in feed imported from a windows based system?

You can use the Feeds Tamper module to do this with a custom plugin. In your module: /** * Implements hook_ctools_plugin_directory(). */ function MYMODULE_ctools_plugin_directory($owner, $...
user avatar
  • 37.6k
3 votes

Import a custom field type record and relate it to a node

Just to double check: You have a content type with fields for your images from cloudinary, and you have nodes that already exist in your site that you need to get the data from Cloudinary into your ...
user avatar
  • 2,399

Only top scored, non community-wiki answers of a minimum length are eligible