Takaisin

Lappeenranta

Virhe tapahtui prosessoidessa esitysmallia.
Method public static com.liferay.portal.model.Layout com.liferay.portal.service.LayoutLocalServiceUtil.getFriendlyURLLayout(long,boolean,java.lang.String) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException threw an exception
1<#-- 
2Web content templates are used to lay out the fields defined in a web 
3content structure. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8<!-- Article categories --> 
9<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
10<#assign currentArticle = journalArticleLocalService.getArticle(getterUtil.getLong(groupId),.vars['reserved-article-id'].data)> 
11<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey()> 
12<#assign catLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")> 
13<#assign articleCat = catLocalService.getCategories("com.liferay.portlet.journal.model.JournalArticle", currentArticleResourcePrimKey)> 
14 
15<!-- Get theme settings from real ThemeDisplay --> 
16<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
17<#assign httpServletRequest = serviceContext.getRequest()> 
18<#assign objTheme = httpServletRequest.getAttribute("LIFERAY_SHARED_THEME_DISPLAY") /> 
19<#assign searchUrl = objTheme.getThemeSetting("searchUrl") /> 
20<#assign shareArticleId = objTheme.getThemeSetting("shareArticleId") /> 
21 
22<!-- Vocabulary id for "Locations" --> 
23<#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetVocabularyLocalService")> 
24<#assign locationsVocabularyName = objTheme.getThemeSetting("locationsVocabulary") /> 
25<#assign locationsVocabulary = AssetVocabularyLocalService.getGroupVocabulary(groupId, locationsVocabularyName)> 
26<#assign locationsCategoryId = locationsVocabulary.getVocabularyId()> 
27 
28<!-- Category button link to search page --> 
29<#assign LayoutLocalServiceUtil = staticUtil["com.liferay.portal.service.LayoutLocalServiceUtil"]> 
30<#assign targetLayout = LayoutLocalServiceUtil.getFriendlyURLLayout(groupId, false, ("/" + searchUrl)) /> 
31<#assign layoutTypePortlet = targetLayout.getLayoutType() /> 
32<#assign portletId = "" /> 
33<#list layoutTypePortlet.getAllPortlets() as portlet> 
34    <#if portlet.getRootPortletId() == "101"> <#-- 101 = asset publisher --> 
35        <#assign portletId = portlet.getPortletId() /> 
36    </#if> 
37</#list> 
38<#assign categoryURL = portletURLFactory.create(httpServletRequest, portletId, targetLayout.getPlid(), "RENDER_PHASE") /> 
39<#assign thisPageUrl = httpServletRequest.getAttribute('CURRENT_COMPLETE_URL') /> 
40 
41<#if txtWebsite?has_content && txtWebsite.getData() != ""> 
42    <#if !txtWebsite.getData()?starts_with("http://")> 
43        <#assign webPage = "http://" + txtWebsite.getData() > 
44    <#else> 
45        <#assign webPage = txtWebsite.getData() > 
46    </#if> 
47</#if> 
48 
49<div class="company-page-container"> 
50    <div id="for-last-companies-viewed" style="display:none;">${txtShortName.getData()}</div> 
51    <!-- Banner --> 
52    <div class="company-page-banner"> 
53        <img alt="Banner image" src="${dmCompanyBanner.getData()}" /> 
54        <#assign css = ""> 
55        <#if !txtSummary?has_content && txtSummary.getData() == ""> 
56            <#assign css = "no-description"> 
57        </#if> 
58        <div class="company-page-summary ${css}"> 
59            <h1 class="${sctSummaryScheme.getData()} ${sctBannerHeader.getData()}">${txtShortName.getData()}</h1> 
60        <#if txtSummary?has_content && txtSummary.getData() != ""> 
61            <p class="${sctSummaryScheme.getData()}">${txtSummary.getData()}</p> 
62        </#if> 
63        </div> 
64    </div> 
65 
66    <div class="company-page-main-content"> 
67        <!-- Center column --> 
68        <div class="company-page-center-column"> 
69            <div class="company-page-center-column-container"> 
70	            <div class="company-page-main-header"> 
71	            <#if txtName?has_content && txtName.getData() != ""> 
72	                <h2>${txtName.getData()}</h2> 
73	            <#else> 
74	                <h2>${txtShortName.getData()}</h2> 
75	            </#if> 
76	                <p> 
77	                <#if txtNeighbourhood?has_content && txtNeighbourhood.getData() != ""> 
78	                ${txtNeighbourhood.getData()}, 
79	                </#if> 
80	                ${txtCity.getData()} 
81	                </p> 
82	            </div> 
83	            <div class="company-page-categories-wrapper"> 
84	                <div class="company-page-category-div"> 
85	                <#list articleCat as category> 
86	                    <#if category.getVocabularyId() != locationsCategoryId> 
87	                    ${categoryURL.setParameter("resetCur", "true")} 
88	                    ${categoryURL.setParameter("categoryId", category.getCategoryId()?string)} 
89	                        <a href="${categoryURL}" class="company-page-category-box" id="company-page-other-cat"> 
90	                        ${category.getName()} 
91	                        </a> 
92	                    </#if> 
93	                </#list> 
94	                </div> 
95	                <div class="company-page-category-div"> 
96	                <#list articleCat as category> 
97	                    <#if category.getVocabularyId() == locationsCategoryId> 
98	                    ${categoryURL.setParameter("resetCur", "true")} 
99	                    ${categoryURL.setParameter("categoryId", category.getCategoryId()?string)} 
100	                        <a href="${categoryURL}" class="company-page-category-box" id="company-page-location-cat"> 
101	                        ${category.getName()} 
102	                        </a> 
103	                    </#if> 
104	                </#list> 
105	                </div> 
106	            </div> 
107 
108	            <div class="company-page-text-base"> 
109	            <#if txtTitle.getSiblings()?has_content> 
110	                <#list txtTitle.getSiblings() as cur_txtTitle> 
111	                    <div> 
112	                        <h3>${cur_txtTitle.getData()}</h3> 
113	                        <p>${cur_txtTitle.txtBody.getData()}</p> 
114	                    </div> 
115	                </#list> 
116	            </#if> 
117	            </div> 
118	        <#if txtWebsite?has_content && txtWebsite.getData() != ""> 
119	            <div class="company-page-website-button"> 
120                <a href="${webPage}" target="_blank">${languageUtil.get(locale, "fc-link-company-website")}</a> 
121	            </div> 
122	        </#if> 
123	        </div> 
124        </div> 
125         
126        <!-- Right column --> 
127        <div class="company-page-right-column"> 
128            <div class="company-page-right-column-container"> 
129            <#if txtWebsite?has_content && txtWebsite.getData() != ""> 
130                <div class="company-page-website-button"> 
131                <a href="${webPage}" target="_blank">${languageUtil.get(locale, "fc-link-company-website")}</a> 
132                </div> 
133            </#if> 
134            <#if shareArticleId?? && shareArticleId?has_content> 
135                <#assign shareArticle = (journalContentUtil.getContent(groupId, shareArticleId, "", locale.toString(), objTheme))!""/> 
136                <#if shareArticle?? && shareArticle?has_content> 
137                    ${shareArticle} 
138                </#if> 
139            </#if> 
140            </div> 
141        </div> 
142         
143        <!-- Left column --> 
144        <div class="company-page-left-column"> 
145            <div class="company-page-left-column-container"> 
146            <#if dmCompanyLogo?has_content && dmCompanyLogo.getData() != ""> 
147                <div class="company-page-logo-area"> 
148                    <img alt="Logo" src="${dmCompanyLogo.getData()}" /> 
149                </div> 
150            </#if> 
151            <div class="company-page-map-area"></div> 
152            <div class="company-page-horizontal-rule company-page-hide"></div> 
153            <div class="company-page-contact-details"> 
154                <p class="company-page-small-header">${txtShortName.getData()}</p> 
155                <p> 
156                ${txtAddress.getData()}<br/> 
157                ${txtPostalCode.getData()} ${txtCity.getData()}<br/> 
158                ${txtCountry.getData()}<br/> 
159                <#if txtPhone?has_content && txtPhone.getData() != ""> 
160                ${txtPhone.getData()} 
161                </#if> 
162                </p> 
163            </div> 
164            <div class="company-page-contact-links"> 
165            <#if txtWebsite?has_content && txtWebsite.getData() != ""> 
166                <a id="company-page-website-link" href="${webPage}" target="_blank">${webPage}</a><br/> 
167            </#if> 
168            <#if txtEmail?has_content && txtEmail.getData() != ""> 
169                <a href="mailto:${txtEmail.getData()}">${txtEmail.getData()}</a> 
170            </#if> 
171            </div> 
172            <div class="company-page-getting-there"> 
173            <#if txtGettingThere?has_content && txtGettingThere.getData() != ""> 
174                <p class="company-page-small-header"> 
175                ${languageUtil.get(locale, "fc-text-company-getting-there")} 
176                </p> 
177                <p>${txtGettingThere.getData()}</p> 
178            </#if> 
179            </div> 
180            <div class="company-page-horizontal-rule"></div> 
181            <div class="last-companies-viewed-wrapper"> 
182                <div class="last-companies-viewed-header">${languageUtil.get(locale, "fc-last-companies-viewed")}</div> 
183                <div class="last-companies-viewed-content"></div> 
184            </div> 
185            </div> 
186        </div> 
187         
188    </div> 
189</div>