Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fetch contentful content and dump the markdowns as posts for sculpin

NotificationsYou must be signed in to change notification settings

airtonzanon/sculpin-contentful-bundle

Repository files navigation

Using Contentful as content management system (CMS), it will download the content from contentful and add them onsource/_[something] directory.

Packagist VersionPackagist PHP Version

How to use

Environment variables:

contentful_token=<token> # This is the access token for this space. Normally you get both ID and the token in the Contentful web appcontentful_space_id=<space_id> # This is the space ID. A space is like a project folder in Contentful terms

Installation:

composer require airtonzanon/sculpin-contentful-bundle dev-master

Usage

Onapp/SculpinKernel.php you should add:

// ...protectedfunctiongetAdditionalSculpinBundles():array    {return [            SculpinContentfulBundle::class,        ];    }// ...
# Environment variables$export contentful_token=<token>$export contentful_space_id=<space_id># Sculpin command$ vendor/bin/sculpin contentful:fetchCreated file: source/_til/2021-04-05-first-post.mdCreated file: source/_til/2020-12-05-second-post.mdCreated file: source/_til/2020-11-23-third-post.md

On Contentful:

  • The name of the content type is the name that we create the folder inside source;
  • The fieldslanguage, title, date and contentMarkdown must exist;

We are still going to add the settings to the user to use their specific fields on this bundle

About

Fetch contentful content and dump the markdowns as posts for sculpin

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

    Contributors2

    •  
    •  

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp