I've attached the tabs.vm that I sent to the list a while ago, which includes support for 'target'.

Matt Raible wrote:

It doesn't look like this Displayer supports a "target" attribute. You can enter this as a bug if you'd like to see it on there. If you can, you could use the VelocityDisplayer with the tabs.html template - then you'll have full control over the HTML it produces.

## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
        ## set title
        #set ($title = $displayer.getMessage($menu.title))
        #if (!$menu.url) $menu.setUrl($menu.components.get(0).url) #end
        <li><a href="$!{menu.url}" title="$title" target="$!{menu.target}">${title}</a>
        #if ($level == 0)
                #if ($menu.components.size() > 0) 
                        #set ($numItems = $menu.components.size())
        <ul class="submenu">
                #else 
        </li>
                #end
        #elseif ($level == 1)
                #if ($menu.components.size() > 0) 
                    #set ($numItems = $menu.components.size())
                <ul class="subsubmenu">
                #elseif ($velocityCount == $numItems) 
        </ul>
        </li>
                #end
        #elseif ($level == 2)
        </li>
                #if ($velocityCount == $numItems)
                </ul>
        </ul>
        </li>
                #end
        #end
#end

#displayMenu($menu 0)

Reply via email to