Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hierarchical data/layer structures #6

Closed
nitrada opened this issue May 13, 2015 · 6 comments
Closed

hierarchical data/layer structures #6

nitrada opened this issue May 13, 2015 · 6 comments

Comments

@nitrada
Copy link
Member

nitrada commented May 13, 2015

the data hierarchy

* group1
  * item1
  * item2
  * item3
* group2
  * item1
  * item2
  * item3
…

could be matched to the following layer hierarchy

* layergroupA
   * layergroup1
   * layergroup2
   * layergroup3
* layergroupB
   * layergroup1
   * layergroup2
   * layergroup3

meaning that {placeholders} will only be replaced on the respective level of the hierarchy

@nitrada nitrada added this to the 2.0 milestone Jun 19, 2015
@VinSpee
Copy link

VinSpee commented Jun 22, 2015

this would be rad!

@fculshaw
Copy link

I'm dealing with a JSON file with a lot of levels of objects and It would be really great if this type of file was supported, for example:

   "images":{  
          "landscape":{  
             "landscape-01":"assets/landscape.jpg",
             "landscape-02":"assets/landscape-02.jpg"
          },
          "portrait":{  
             "portrait-01":"assets/portrait-01.jpg",
             "portrait-02":"assets/portrait-02.jpg"
          },
          "logo":{  
             "logo-01":"assets/logo-01.jpg",
             "logo-02":"assets/logo-02.jpg"               
          },
          "background":{  
             "background-01":"assets/bg-01.jpg",
             "background-02":"assets/bg-02.jpg"
          }

Apologies if this is already possible, I couldn't seem to get results

@nitrada
Copy link
Member Author

nitrada commented Jun 26, 2015

@fculshaw this is not yet possible but exactly what we need. :)

@clarklab
Copy link

+1 for this idea. Currently it seems like all data needs to have the same types/fields, but it would be hugely useful to have some asymmetrical datasets.

@theoBLT
Copy link

theoBLT commented Aug 17, 2015

+1 for this idea too, multiple object level support would be awesome and make this plugin really cool.

@nitrada
Copy link
Member Author

nitrada commented Nov 24, 2015

@VinSpee @fculshaw @clarklab @theoBLT
Since v1.3.0, this is fully supported, including nested arrays. Please let us know if you run into issues.

@nitrada nitrada closed this as completed Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants