Code Monkey home page Code Monkey logo

Comments (3)

birkir avatar birkir commented on July 23, 2024

Document is a field that you can reference another documents with many-to-many relationships.

Slice is a field that allows slices (like documents) within your document that has one-to-many relationship.

I am re-using ContentType to store the schema of the two, but fundamentally, they are different. The UI is a little bit confusing, and I tend to fix that soon.

Document(Author)[] <> Document(Blog)[]
Document(Blog) > Slice(Foo | Bar | Baz)[]
Document(Author) > Slice(Baz | Foo)[]

Nobody owns documents content
Document owns Slices content

from prime.

intellix avatar intellix commented on July 23, 2024

Was also wondering the same thing actually. Used the Deploy to Heroku feature and am playing around with Prime.

I can add a Document and pick both Slices and Documents, which lead me to confusion but I think it shouldn't be allowed? After having a Document field with both documents and slices I get errors after visiting the Documents page:

Screenshot 2019-05-16 15 40 02

Screenshot 2019-05-16 15 39 47

from prime.

birkir avatar birkir commented on July 23, 2024

Yes, that should not happen. I am hoping to be able to update the UI to not show Slices in the Schema tabs (Content Types/Templates/Slices) but rather inside Content Types themselfs.

However I want them to be shared between content types too, so I will figure something out there

from prime.

Related Issues (20)

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.