3.4.0-cm2278.4 • Published 5 years ago

plugin-article v3.4.0-cm2278.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Fundation Plugin - Article

This plugin assumes the existance and contents of certain files in the vertical site codebase.

config/config.js

Required Properties

sdk: {
  name: 'sapling-sdk',
  domain: 'http://api.sapling.com',
  token: 'token_from_login'
},
site: {
  domain: 'https://www.sapling.com',
  title: 'Sapling.com'
},
articles: {
  taboola_loader_url: '//cdn.taboola.com/libtrc/demandmedia-cutenesscom/loader.js'
},

Optional Properties

image_resize_profiles: {
  article_image: '640',
  article_rcp: '60x60'
},
articles: {
  nc_lc_date: '2016-10-01'
},
partner_related_content: [
  {
    linkUrl: 'https://grow.acorns.com/2016/10/12-answers-to-your-i-dont-have-money-for-the-holidays-problem/?utm_source=sapling&utm_medium=partner',
    imageUrl: '/ui/images/partner-rc-answers-holiday.png',
    title: 'The Answer to Your \'I Don\'t Have Money for the Holidays\' Problem'
  },
],

package.json

When a new vertical site is added, the SDK package needs to be added as a dependecy to this plugins' package.json file.

"sapling-sdk": "git+ssh://git@gitlab.dmdmedia.net:direwolf/sapling-sdk.git#1.3.8"
"cuteness-sdk": "git+ssh://git@gitlab.dmdmedia.net:direwolf/cuteness-sdk.git#0.4.4"