-
Notifications
You must be signed in to change notification settings - Fork 45
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
Twig filter/method for generating phpcr URLs that work even if document is moved. #77
Comments
When you use the RoutingBundle you can already use |
@uwej711 i think ben is talking about wysiwyg content containing internal links. @benglass i think the right bundle for this would be RoutingBundle. i was also pondering this idea once, not sure if i have any issue opened anywhere. the twig filter (i would filter, not function) sounds right. but additionally for handling editing, we need a doctrine listener that filters back any internal urls to the document id or symfony route name. that is a bit tricky as we would need to either handle route parameters or detect if such are used and then not replace the link. magnolia cms (a jackrabbit based java cms) is storing both the phpcr path and the uuid of a document in order to survive move operations and recreating a node (deleting a doc then creating it anew in the same location). |
I dont know if this is the right bundle for this issue but I think there should be a built in way to embed links/urls to other routes in the CMF into the body of a PHPCR document that can be resolved to the correct URL for the page whether the page has been moved or renamed. This is a feature that other CMS's have, for example in MODx you can have something like in your content
And the CMS will expand that to the correct URL for the page of that id. This allows the end user to change page URLs without having to update links throughout their site. This may be possible for any documents that use the referenceable mixin as they have a unique id.
The text was updated successfully, but these errors were encountered: