new simple virtual uri mapping implementation that can rotate between multiple 
urls
-----------------------------------------------------------------------------------

                 Key: MAGNOLIA-1669
                 URL: http://jira.magnolia.info/browse/MAGNOLIA-1669
             Project: Magnolia
          Issue Type: Improvement
          Components: core
    Affects Versions: 3.1 M2
            Reporter: Fabrizio Giustina
         Assigned To: Fabrizio Giustina
            Priority: Trivial
             Fix For: 3.1 M3


A small addition to the virtual URI mapping family:

info.magnolia.cms.beans.config.RotatingVirtualURIMapping

(from class javadoc)

An extension of RegexpVirtualURIMapping that allows a rotation between 
different destination urls. In order to rotate toURI must contain the * that 
will be replaced by a random number between start (default is 1) and end 
(defaults is 3).

An additional property padding can specify the left 0 padding for numbers 
(defaults is 2). So for example a destination url like 
forward:/banner/image_*.jpg will randomly forward the request to 
/banner/image_01.jpg, /banner/image_02.jpg or /banner/image_03.jpg 

-- 
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/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to