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 
19<div id="wiki-menu-content" class="row-fluid"> 
20    <div class="span3 portlet-navigation" > 
21        <div id="btn-itens-menu" class="visible-phone"> 
22            <a class="btn btn-navbar">  
23                <i class="icon-reorder"></i>&nbsp;${item.title} 
24            </a> 
25        </div> 
26        <div id="navigation-menu" class="nav-menu nav-menu-style- hidden-phone" style="background-color:#FFF"> 
27            <@createItemTOC item=item level=1/> 
28        </div> 
29    </div> 
30    <div class="span9"> 
31        <!--div id="exportPage" class="pull-right"> 
32            <#assign exportPageURL = renderResponse.createActionURL() /> 
33			${exportPageURL.setParameter("struts_action", "/asset_publisher/export_wiki_page")} 
34			${exportPageURL.setParameter("title", item.getTitle())} 
35	        ${exportPageURL.setParameter("nodeId", "" + item.getNodeId())} 
36	        ${exportPageURL.setParameter("targetExtension", "pdf")} 
37	        ${exportPageURL.setWindowState("exclusive")} 
38		    <@liferay_ui["icon"] 
39                image="../file_system/small/pdf" 
40                message="PDF" 
41                label=true 
42                method="get" 
43                url=exportPageURL.toString() 
44            /> 
45        </div--> 
46        <div id="pageContent"> 
47            <div> 
48                <#if a_page_anchor gt 0> 
49                    <#assign item = WikiPageLocalService.getPageByPageId(a_page_anchor) /> 
50                    <#if !item.isHead()> 
51                        <#assign item = WikiPageLocalService.getPage(item.getNodeId(), item.getTitle()) /> 
52                    </#if> 
53                    <#else> 
54                        <#if a_pageResourcePrimKey gt 0> 
55                            <#assign item = WikiPageLocalService.getPage(a_pageResourcePrimKey) /> 
56                        </#if> 
57                </#if> 
58                <#if permissionChecker.hasPermission(item.getGroupId(), "com.liferay.portlet.wiki.model.WikiPage", item.getResourcePrimKey(), "VIEW")> 
59                    <#assign content = item.content> 
60                    ${content} 
61                    <#if stringUtil.split(metadataFields)?seq_contains("view-count")> 
62                        <div class="metadata-entry metadata-view-count pull-right"> 
63                        <#if entry.viewCount == 1> 
64                            ${entry.viewCount} visualização 
65                        </#if> 
66                        <#if entry.viewCount gt 1> 
67                            ${entry.viewCount} visualizações 
68                        </#if> 
69                        </div> 
70                    </#if> 
71                    <#if stringUtil.split(metadataFields)?seq_contains("author")> 
72                        <div class="metadata-entry metadata-view-count pull-right"> 
73                    		<#assign groupLocalService = serviceLocator.findService("com.liferay.portal.service.GroupLocalService")> 
74                    		<#assign group = groupLocalService.getGroup(entry.getGroupId())> 
75                    		<#assign groupName = group.getDescriptiveName()> 
76                            Por ${groupName} 
77                        </div> 
78                    </#if> 
79                </#if> 
80            </div> 
81        </div> 
82    </div> 
83</div> 
84<#macro createItemTOC item level> 
85    <#if level gt 1 && item.nodeId != a_page_anchor> 
86        <#assign toggler = "toggler-header-collapsed"> 
87    <#else> 
88        <#assign toggler = "toggler-content-expanded"> 
89    </#if> 
90    <ul id="contentToggler" class="content layouts level-${level} ${toggler}"> 
91    <#if level == 1> 
92        <li> 
93            <a href="${currentURL}"> 
94                <i class="icon-home"></i>&nbsp;${item.title} 
95            </a> 
96        </li> 
97    </#if> 
98    <#assign childs = item.viewableChildPages> 
99    <#list childs as child> 
100        <#if child.redirectTitle == '' && permissionChecker.hasPermission(child.getGroupId(), "com.liferay.portlet.wiki.model.WikiPage", child.getResourcePrimKey(), "VIEW")> 
101            <li> 
102                <#if child.primaryKey == a_page_anchor> 
103                    <#assign toggler = "toggler-header-expanded"> 
104                <#else> 
105                    <#assign toggler = "toggler-header-collapsed"> 
106                </#if> 
107                <a id="${child.primaryKey}" href="${currentURL}&a_page_anchor=${child.primaryKey}" class="header ${toggler}"> 
108                    ${child.title} 
109                </a> 
110                <@createItemTOC item=child level=level+1/> 
111            </li> 
112        </#if> 
113    </#list> 
114    </ul> 
115</#macro> 
116 
117<style type="text/css"> 
118    #pageContent { 
119        padding-left: 10px; 
120        padding-right: 10px; 
121
122</style> 
123 
124<script type="text/javascript"> 
125    function toggleMenu() { 
126        AUI().use('aui-node', function(A) { 
127            var menu = A.one('#navigation-menu'); 
128            if(menu.hasClass('hidden-phone')) { 
129                   menu.replaceClass('hidden-phone','visible-phone'); 
130            } else { 
131                   menu.replaceClass('visible-phone','hidden-phone'); 
132
133        }); 
134
135    AUI().use('aui-toggler','aui-node', function(A) { 
136        // create navigation menu toggler 
137        var menuToggler = new A.TogglerDelegate({ 
138            container: '#contentToggler', 
139            content: '.content', 
140            header: '.header', 
141            expanded: false, 
142            animated: true, 
143            closeAllOnExpand: true 
144        }); 
145        var selectedPage = A.one("#${a_page_anchor}"); 
146        if(selectedPage != null) { 
147            openPageMenu(selectedPage); 
148
149        A.one('#btn-itens-menu').on( 
150         	'click', 
151     	    toggleMenu 
152        ); 
153    }); 
154    function openPageMenu(selectedPage){ 
155        selectedPage.ancestorsByClassName('toggler-header-collapsed').each(function(ancestorPage) { 
156            ancestorPage.replaceClass('toggler-header-collapsed','toggler-header-expanded'); 
157            ancestorPage.replaceClass('toggler-content-collapsed','toggler-content-expanded'); 
158            openPageMenu(ancestorPage); 
159        }); 
160
161    function goPage(nodeId) { 
162        window.location.href='${currentURL}&a_page_anchor=' + nodeId; 
163
164</script>