#assign aui = taglibLiferayHash["/WEB-INF/tld/aui.tld"] />
<#macro displayPages
root
pages
level
>
<#if pages?has_content>
<#list pages as page>
<#assign pageLayoutURL = portalUtil.getLayoutURL(page, themeDisplay)>
<#assign data_url = root+page.getFriendlyURL(locale)>
<#assign childPages = page.getChildren()>
<#assign page_class = "page_item ">
<#if childPages?size gt 0 >
<#assign page_class = page_class+" has_children">
#if>
-
${page.getName(locale)}
<#assign sub_level = level + 1 >
<@displayPages root = data_url pages = childPages level = sub_level />
#list>
#if>
#macro>