Add ability to wrap an anchor element with an html element
----------------------------------------------------------

                 Key: MAGNOLIA-2028
                 URL: http://jira.magnolia.info/browse/MAGNOLIA-2028
             Project: Magnolia
          Issue Type: New Feature
          Components: taglibs
    Affects Versions: 3.5.3
            Reporter: Ryan Gardner
            Assignee: Fabrizio Giustina
            Priority: Minor
         Attachments: wrappingElement.patch

For some effects, it is desirable to wrap the <a> element with an html element. 
A common use-case is for creating a certain kind of "tab" effect (using 
"sliding-door" image backgrounds) and having the anchor highlight the entire 
tab. 

this patch adds an optional simple "wrapperElement" to the 
<cmsu:simpleNavigation> so that it can be used to output elements that are 
wrapped with a given tag. When the tag is used, the following output will 
result: 

            <cmsu:simpleNavigation startLevel="3" style="mystyle" 
wrapperElement="span"/>
            Will output the following:
            <ul class="level3 mystyle">
                <li><span><a href="...">page 1 name </a></span></li>
                <li><span><a href="...">page 2 name </a></span></li>
                <li class="trail"><span><a href="...">page 3 name </a></span>
                    <ul class="level3">
                        <li><span><a href="...">subpage 1 name </a></span></li>
                        <li><span><a href="...">subpage 2 name </a></span></li>
                        <li><span><strong><a href="...">selected page name 
</a></span></strong></li>
                    </ul>
                </li>
                <li><span><a href="...">page 4 name </a></span></li>
            </ul>

Any simple element can be specified, (such as "em", "strong", "span", "div"... 
etc)

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