keithmancuso / craft-json-expand Goto Github PK
View Code? Open in Web Editor NEWa simple twig filter for Craft CMS to output entry models into json
Home Page: http://familiar.is
a simple twig filter for Craft CMS to output entry models into json
Home Page: http://familiar.is
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.