[
http://jira.magnolia-cms.com/browse/MAGNOLIA-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grégory Joseph updated MAGNOLIA-2343:
-------------------------------------
Fix Version/s: 4.1.1
4.2
(was: 4.1 RC1)
> Replace current implementation for selectors by a more flexible mechanism
> -------------------------------------------------------------------------
>
> Key: MAGNOLIA-2343
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2343
> Project: Magnolia
> Issue Type: Task
> Components: core, templating
> Reporter: Grégory Joseph
> Assignee: Grégory Joseph
> Fix For: 4.1.1, 4.2
>
> Attachments: Picture 1.png
>
>
> {panel:title=Warning}
> This issue has been updated.
> Its title used to be "selectors can be deprecated, virtual uri mappings can
> do a better job", and this was a very misleading title, which led to the
> comments below. We hear your concerns, they are totally valid, so we'll try
> to come up with something better :)
> As from 2008-09-11, we've renamed, re-described and postponed this issue.
> {panel}
> The current implementation of selectors is unsatisfying in many levels:
> * it is redundant with what can be (at least partly) achieved with virtual
> uri mappings ({{/foo.bar.html}} -->forward--> {{/foo.html?selector=bar}}, and
> does not allow other elegant solutions for nice urls ({{/archives/2008/09}})
> * it is does not allow naming of parameters or generally more flexible
> mappings: the knowledge of how to treat the complete selector string is coded
> in the template. (For a URI like "/archives.2008.09.html", the template gets
> a "2008.09" string, and he has to know the exact order of these 2 elements in
> the string)
> * there are many possible places where a template could get its "dynamic"
> information from (request parameters, request attributes, context attributes,
> uri in itself, ...) and this is just adding to the confusion.
> * it is completely hard-wired in the filter chain and the API of Magnolia: it
> can't be disabled, and it adds "complexity" to the API for something that
> should not be imposed on users. (it *is* useful, but people should be free to
> use it or not and/or to use other mechanisms for similar purposes)
> For these reasons, we'd like to replace it. Replacing it with the current
> implemenation of virtual uri mappings isn't exactly the best solution, which
> is why we're postponing this. I'll try to come up with a small document
> describing a possible solution shortly.
> note: The original link of this issue to the "dots in user names" issue
> remains, because they are indeed related, but the fixes for both issues will
> not be. (i.e. we do not necessarily need to change the selectors
> implementation to fix the dots in user names issue and vice-versa; it's just
> by investigating the latter that we started discussing the selector issue)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------