Um erro ocorreu enquanto processava o modelo.
Expression entry is undefined on line 6, column 21 in 10132#10165#14729741.
1<#-- 
2	Freemarker template for wiki selected in asset publisher. 
3	It will show a menu with this wiki children for selecting a child wiki content assynchronously.  
4--> 
5<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
6<#assign renderer = entry.getAssetRenderer() /> 
7<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
8<#assign httpServletRequest = serviceContext.getRequest()> 
9<#-- 
10	@a_page_anchor Selected page 
11--> 
12<#assign a_page_anchor = (httpServletRequest.getParameter('a_page_anchor')?number)!0> 
13<#assign a_pageResourcePrimKey = (httpServletRequest.getParameter('_36_pageResourcePrimKey')?number)!0> 
14<#assign WikiPageLocalService = serviceLocator.findService("com.liferay.portlet.wiki.service.WikiPageLocalService")> 
15<#assign item = WikiPageLocalService.getPage(entry.getClassPK()) /> 
16<#assign permissionChecker = themeDisplay.getPermissionChecker()> 
17 
18<div id="wiki-menu-content" class="row-fluid"> 
19    <div class="span3 portlet-navigation" style="background-color:#7e99bb"> 
20        <div id="btn-itens-menu" class="visible-phone"> 
21            <a class="btn btn-navbar">  
22                <i class="icon-reorder"></i>&nbsp;${item.title} 
23            </a> 
24        </div> 
25        <div id="navigation-menu" class="nav-menu nav-menu-style- hidden-phone"> 
26            <@createItemTOC item=item level=1/> 
27        </div> 
28    </div> 
29    <div class="span9"> 
30        <div id="exportPage" class="pull-right"> 
31            <#assign exportPageURL = renderResponse.createActionURL() /> 
32			${exportPageURL.setParameter("struts_action", "/asset_publisher/export_wiki_page")} 
33			${exportPageURL.setParameter("title", item.getTitle())} 
34	        ${exportPageURL.setParameter("nodeId", "" + item.getNodeId())} 
35	        ${exportPageURL.setParameter("targetExtension", "pdf")} 
36	        ${exportPageURL.setWindowState("exclusive")} 
37		    <@liferay_ui["icon"] 
38                image="../file_system/small/pdf" 
39                message="PDF" 
40                label=true 
41                method="get" 
42                url=exportPageURL.toString() 
43            /> 
44        </div> 
45        <div id="pageContent"> 
46            <div> 
47                <#if a_page_anchor gt 0> 
48                    <#assign item = WikiPageLocalService.getPageByPageId(a_page_anchor) /> 
49                    <#if !item.isHead()> 
50                        <#assign item = WikiPageLocalService.getPage(item.getNodeId(), item.getTitle()) /> 
51                    </#if> 
52                    <#else> 
53                        <#if a_pageResourcePrimKey gt 0> 
54                            <#assign item = WikiPageLocalService.getPage(a_pageResourcePrimKey) /> 
55                        </#if> 
56                </#if> 
57                <#if permissionChecker.hasPermission(item.getGroupId(), "com.liferay.portlet.wiki.model.WikiPage", item.getResourcePrimKey(), "VIEW")> 
58                    <#assign content = item.content> 
59                    ${content} 
60                </#if> 
61            </div> 
62        </div> 
63    </div> 
64</div> 
65<#macro createItemTOC item level> 
66    <#if level gt 1 && item.nodeId != a_page_anchor> 
67        <#assign toggler = "toggler-header-collapsed"> 
68    <#else> 
69        <#assign toggler = "toggler-content-expanded"> 
70    </#if> 
71    <ul id="contentToggler" class="content layouts level-${level} ${toggler}"> 
72    <#if level == 1> 
73        <li> 
74            <a href="${currentURL}"> 
75                <i class="icon-home"></i>&nbsp;${item.title} 
76            </a> 
77        </li> 
78    </#if> 
79    <#assign childs = item.viewableChildPages> 
80    <#list childs as child> 
81        <#if child.redirectTitle == '' && permissionChecker.hasPermission(child.getGroupId(), "com.liferay.portlet.wiki.model.WikiPage", child.getResourcePrimKey(), "VIEW")> 
82            <li> 
83                <#if child.primaryKey == a_page_anchor> 
84                    <#assign toggler = "toggler-header-expanded"> 
85                <#else> 
86                    <#assign toggler = "toggler-header-collapsed"> 
87                </#if> 
88                <a id="${child.primaryKey}" href="${currentURL}&a_page_anchor=${child.primaryKey}" onclick="goPage(${child.primaryKey});" class="header ${toggler}"> 
89                    ${child.title} 
90                </a> 
91                <@createItemTOC item=child level=level+1/> 
92            </li> 
93        </#if> 
94    </#list> 
95    </ul> 
96</#macro> 
97 
98<style type="text/css"> 
99    .aui .level-1 { 
100        background-color: #415a67; 
101
102    #pageContent { 
103        padding-left: 10px; 
104        padding-right: 10px; 
105
106</style> 
107 
108<script type="text/javascript"> 
109    function toggleMenu() { 
110        AUI().use('aui-node', function(A) { 
111            var menu = A.one('#navigation-menu'); 
112            if(menu.hasClass('hidden-phone')) { 
113                   menu.replaceClass('hidden-phone','visible-phone'); 
114            } else { 
115                   menu.replaceClass('visible-phone','hidden-phone'); 
116
117        }); 
118
119    AUI().use('aui-toggler','aui-node', function(A) { 
120        // create navigation menu toggler 
121        var menuToggler = new A.TogglerDelegate({ 
122            container: '#contentToggler', 
123            content: '.content', 
124            header: '.header', 
125            expanded: false, 
126            animated: true, 
127            closeAllOnExpand: true 
128        }); 
129        var selectedPage = A.one("#${a_page_anchor}"); 
130        if(selectedPage != null) { 
131            openPageMenu(selectedPage); 
132
133        A.one('#btn-itens-menu').on( 
134         	'click', 
135     	    toggleMenu 
136        ); 
137    }); 
138    function openPageMenu(selectedPage){ 
139        selectedPage.ancestorsByClassName('toggler-header-collapsed').each(function(ancestorPage) { 
140            ancestorPage.replaceClass('toggler-header-collapsed','toggler-header-expanded'); 
141            ancestorPage.replaceClass('toggler-content-collapsed','toggler-content-expanded'); 
142            openPageMenu(ancestorPage); 
143        }); 
144
145    function goPage(nodeId) { 
146        window.location.href='${currentURL}&a_page_anchor=' + nodeId; 
147
148</script>