@webbio/wordpressinterceptor
TypeScript icon, indicating that this package has built-in type declarations

1.6.7 • Public • Published

Wordpress Interceptor

This package has been created to connect a Wordpress enviroment to a Viper application.

Usage

You need to import the 4 modules and initialize it in the app.module:

  • DatabaseModule
  • MenuModule
  • PostModule
  • SiteMapModule
@Module({
     imports: [
       DatabaseModule.register(),
       MenuModule.register(platformConfig),
       PostModule.register(platformConfig),
       SiteMapModule.register(),
     ],
  providers: [],
  controllers: [HealthCheckController],
})

The menu and post module requires some configuration. This configuration must be a json object that is build as follows:

[
    {
        "id": 1,
        "wp": "",
        "fe": "",
        "menu": {
            "header": 1,
            "side": 1,
            "footerColumnOne": 1,
            "footerColumnTwo": 1
        },
        "replace": [
          "",
          ""
        ]
    }
]

Readme

Keywords

none

Package Sidebar

Install

npm i @webbio/wordpressinterceptor

Weekly Downloads

6

Version

1.6.7

License

ISC

Unpacked Size

198 kB

Total Files

274

Last publish

Collaborators

  • fred-webbio
  • smdehaas
  • jaapwebbio
  • rowanpaul
  • mikewebbio
  • hayedewit
  • tomwebbio
  • maikelm
  • joerismits
  • martijn-webbio