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

figure out a better mapping from id's to paths #2

Closed
lsmith77 opened this issue Apr 21, 2014 · 2 comments
Closed

figure out a better mapping from id's to paths #2

lsmith77 opened this issue Apr 21, 2014 · 2 comments

Comments

@lsmith77
Copy link
Member

option 1)

use bookmarks, but bookmarks names do not allow adding slashes, so we cannot do any deeper structures. also they are maintained by the administrator.

option 2)

use a custom property. i think its possible to define custom node types with required fields in prismic but if publishers need to maintain a tree structure, they need some UI to help them manage this easier.

@dbu
Copy link
Member

dbu commented Apr 21, 2014

you could read a phpcr:path property or such and if there is none, fall back to what you use now in the POC. however, this would only work when creating nodes does not happen through prismic but through some phpcr client, as it allows to create nodes without direct parent.

@lsmith77
Copy link
Member Author

for now I am just using bookmarks as paths if available and otherwise I keep using the uuid's. for structured documents we will likely want to model them as children, see also #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants