[
http://jira.magnolia.info/browse/MAGNOLIA-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17832#action_17832
]
Gregory Joseph commented on MAGNOLIA-2343:
------------------------------------------
I see your concerns. Ours is that virtual uri mappings basically permit the
same thing selectors do, just in a more powerful and flexible way, and the two
are somewhat redundant.
*However*: the whole issue is, generally, about how to map a URL to a node in
the repository. Virtual uri mappings could be improved so that one wouldn't
have to necessarily forward the request with added parameters (it could for
instance add these to the current state instead). And it could possibly be
merged with URI2RepositoryMapping, which also do something similar.
Wolfgang, the semantic difference is very discussable, especially since we all
love "nice" URLs. My typical exemple is /archive/?month=09&year=2008 vs
/archive/2008/09 : the latter is obviously better, although obviously,
whichever you use, you're probably only going to have one "concrete" end point
(page) in your application ("/archive")
Deprecation: does not mean the *concept* is forgotten about. We're just talking
about the *API* here.
>From a developer point of view, I am not convinced using request parameters
>would be more complicated: in fact, that gives the templater one less possible
>point of input. The configuration on the other hand might be a little more
>complex. Maybe a page displaying a complete list of mappings would help.
*IF* we end up removing this feature at some later point in time, we will
ensure there is a replacement. The current deprecation is only a warning (like
there are tons in the current codebase) that this might change at some point in
the future. It will not go away without more warnings (i.e explanations in
release notes) AND we will definitely provide replacing functionality (for
instance a global mapping that gives you the selectors but no dots in URLs,
which you can turn on/off depending on your needs)
Again, one more time: deprecation does not mean immediate removal. We might
even end up de-deprecate it, who knows? For us, it's more of a reminder that
"hey, we need to improve things in this area" than anything else.
> Selectors can be deprecated, virtual uri mappings can do a better job
> ---------------------------------------------------------------------
>
> Key: MAGNOLIA-2343
> URL: http://jira.magnolia.info/browse/MAGNOLIA-2343
> Project: Magnolia
> Issue Type: Task
> Components: core, templating
> Reporter: Gregory Joseph
> Assignee: Gregory Joseph
> Fix For: 3.6.2
>
> Attachments: Picture 1.png
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------