Giter Site home page Giter Site logo

craft-json-expand's People

Contributors

keithmancuso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lukepeters

craft-json-expand's Issues

Asset objects aren't returned with all attributes set

I'm spitting back a single entry via the json_expand | raw twig function for Marionette to digest on initial page load.

This is the object that is given back for the entries mp3...

This field is attached to a matrix field that only allows 1 mp3 fields to be entered. The only available attributes is the slug.

"mp3":{ "0":{ "id":"5", "enabled":"1", "archived":"0", "locale":"en_us", "localeEnabled":"1", "slug":"thinkcraftcode-demo", "uri":null, "dateCreated":{ "date":"2014-04-04 08:13:30.000000", "timezone_type":1, "timezone":"+00:00" }, "dateUpdated":{ "date":"2014-04-04 08:41:21.000000", "timezone_type":1, "timezone":"+00:00" }, "root":null, "lft":null, "rgt":null, "level":null, "sourceId":"2", "folderId":"2", "filename":"thinkcraftcode-demo.mp3", "originalName":null, "kind":"audio", "width":null, "height":null, "size":"1488687", "dateModified":{ "date":"2014-04-04 08:13:28.000000", "timezone_type":1, "timezone":"+00:00" } }

But spitting it out with normal twig inside of a template gives me the full URI, not just a filename.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.