[ 
http://jira.magnolia.info/browse/MAGNOLIA-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17803#action_17803
 ] 

Wolfgang Habicht commented on MAGNOLIA-2343:
--------------------------------------------

We also use selectors a lot in our projects.

I see still some more problems replacing selectors with URI mappings:
- assume the case having selectors and optional URL parameters: is this 
possible with a regexp? (you need to add ?selector=... or &selector=...)
[Alternatively a new VirtualURIMapping class could be written...]
- to remove them internally might work - however I do not see any advantage 
(see below)
- removing selectors also in URLs is much more than just search/replace; there 
could be also some string operations concatenating URL-parts; potentially also 
in Java Script.

The question whether to remove selectors came from the idea to allow dots in 
(only some?) node names. I didn't get the advantage of removing selectors in 
the proposed way to achieve dots in names; they still exist in the URI - and 
are "only" removed during processing. 
If you remove them from the URI (as sent by the client) too, you run into 
caching problems. 

If you have really good reasons to remove selectors, please do not do it in a 
major release (i.e. Magnolia 4.0) as in my opinion this is a major change.

(off topic: to achieve dots in user names why not escape/encode the dot 
character for transmission? Such an URL may not be nicely readable, however the 
basic problem is solved. It is up to an admin if he will be using dots.)

> 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/
----------------------------------------------------------------

Reply via email to