Code Monkey home page Code Monkey logo

strapi-plugin-import-content's Introduction

Strapi Import Content plugin

Import RSS items to your content type with Strapi.

Build Status

Installation

cd my-strapi-project/plugins
git clone https://github.com/jbeuckm/strapi-plugin-import-content.git import-content
cd import-content && npm install
cd ../..
npm run setup --plugins

* the last step takes a notoriously long time...

Configuration

When plugin has been installed, you need to allow access to the endpoints.

  1. Navigate to Users & Permissions.
  2. Pick the role you would like to give permission.
  3. Scroll down and expand the section Import Content.
  4. Check "Select All" for the endpoints under "Importconfig".
  5. Scroll up and press "Save"

Usage

Click for video demo: Click for demo video

strapi-plugin-import-content's People

Contributors

jbeuckm avatar marcmarine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

strapi-plugin-import-content's Issues

Persist the queue

As it is now, the queue is lost and import config is stuck "ongoing" when strapi is restarted during an import or undo.

Installation does not work with `strapi install import-content`

โœ– An error occurred during plugin installation.
Please make sure this plugin is available on npm: https://www.npmjs.com/package/strapi-plugin-import-content

The package does appear at that url on npm, but this installation method is not working.

Alpha to Beta adaptation

Since the beta changes of Strapi, the plugin is not showing up anymore in the left panel.
To continue using this project, alpha to beta update is needed.

Plugin outdated - not longer working

Hi,

I've been trying to get this plugin to work with the current stable version of Strapi (3.5.4) but it doesn't work at all. Webpack even refuses to parse the .scss files and fails early.

There's 2 forks of this project that already contain quite some fixes:

  1. https://github.com/akoharu/strapi-plugin-import-content
    Deals with the internal change from .id to ._id
  2. https://github.com/khoazero123/strapi-plugin-import-content
    Handles internal path changes and uses the strapi-plugin-helper functions

But even after applying those changes (and renaming all .scss files to .css), the media import doesn't work. Also, the parsing of the existing Strapi models is broken and needs to be revised too.

It seems like the internal uploadProvider is no longer able to upload files programmatically and most guides I find out there are suggesting to use a FormData object and add the file to that, to send it off to the regular api endpoints of the content-manager.

I've asked for help on the Strapi forums as well: https://forum.strapi.io/t/need-help-with-reviving-strapi-plugin-import-content/3937

I also started a fork of this repo to be able to merge my changes with the ones from both forks above to end up with a functional plugin again so I can propose a PR, but I haven't managed to solve the media upload issue either.

@jbeuckm do you have any intentions on updating this plugin? Or have you moved on and should this plugin be considered dead? If the latter, I'll kindly request the Strapi team to remove the blog post as well as it is just misleading at the moment, I've literally spent almost 2 weeks of my time in trying to get it working..

Kind regards,

Erik aka 4levels

import-content thows error on strapi develop

error Bootstrap function in plugin "import-content" failed
[2020-06-11T01:30:27.426Z] error TypeError: callback is not a function
at module.exports (/Users/n01216987/workspace/strapiProject/plugins/import-content/config/functions/bootstrap.js:64:3)

Support mongo

I think the line that saves the new content will only work with bookshelf:

  const savedContent = await strapi.models[importConfig.contentType]
    .forge(importedItem)
    .save();

Undo sometimes fails

(node:88691) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'provider' of null
at Object.remove (/Users/j.beuckman/Documents/blog/plugins/upload/services/Upload.js:159:14)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:88691) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:88691) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Add custom static field(s) to an upload

For instance, ability to add a "source" field that is the name of the imported content. Possibly add "formula" fields that are calculated from incoming content properties.

mongodb is not working with the plugin

Hi

I'm having some issues when I'm installing the plugin into my strapi.

Strapi version: 3.0.0-alpha.26.2
using [email protected]
using [email protected]

Basically I'm getting this error after I run the npm run setup --plugins

Building the admin...
(node:3601) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prebuild: `cross-env NODE_ENV=production IS_ADMIN=true node ./node_modules/strapi-helper-plugin/lib/internals/scripts/loadAdminConfigurations.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] prebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ronsandova/.npm/_logs/2019-11-14T06_52_42_448Z-debug.log

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] setup: `node ./scripts/setup.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ronsandova/.npm/_logs/2019-11-14T06_52_42_619Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] setup: `cd admin && npm run setup`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ronsandova/.npm/_logs/2019-11-14T06_52_42_667Z-debug.log`

Ant ideas let me know

Last command not workable

"npm run setup --plugins"

This line of command not workable on my device. It shown this. May i know why?
image

Strapi Stable Release

Since Strapi just hit a stable release, will there be an updated version of this plugin? :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.