pptx-template icon indicating copy to clipboard operation
pptx-template copied to clipboard

Settings to be applied to all slides

Open reki2000 opened this issue 7 years ago • 0 comments

Problem

If all slides have the same string like "Created date: 2017-10-20", model.json should have the same setting on EVERY slide settings.

Solution

Introduce "global" setting into model.json

Specification

The same settings for each slides, but written under "global" key in JSON.

If a key in "slides" setting has the same name with the key defined in "global", the value defined in "slides" is used.

{
  "global": {
     "<key1>": "<value1>",
     "<key2>": { <chart settings> }
  },
  "slides": {
     "<slide_id>": {
        "<key1>": "<value1_local>",       # this value is used instead of <value1> in global
       ....
     }
  }

reki2000 avatar Jul 07 '17 00:07 reki2000