Skip to content

Instantly share code, notes, and snippets.

View ryanschuhler's full-sized avatar

Ryan Schuhler ryanschuhler

View GitHub Profile
@ryanschuhler
ryanschuhler / view.jsp
Created April 14, 2015 20:38
blog_streams view
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
======================
New Page Structure
======================
Top Nav:
Developers
Developer Community
Marketplace
Search
Login
<style>
.report {
background: #FFF;
border: 1px solid #091c36;
}
.report-item {
margin: 10px 0;
}
#set ($namespace = $request.portlet-namespace)
#set ($userLocalService = $serviceLocator.findService("com.liferay.portal.service.UserLocalService"))
#set ($user = $userLocalService.getUser($getterUtil.getLong($request.theme-display.user-id)))
#set ($userCompany = $user.getExpandoBridge().getAttribute("osbCompany"))
<p>$description_text.getData()</p>
#if ($request.lifecycle == 'RENDER_PHASE')
#set ($render_default = true)
#set ($content_targeting_logic_article_id = "XXXXXXXX")
#if ($target_user && ($target_user.getData() != ""))
## Parse targeting logic to see if targeted content should be served
#parse("${journalTemplatesPath}/${content_targeting_logic_article_id}")
## If user qualifies as target, then embed another article instead of the current one.
#foreach ($targets in $target_user.siblings)
#set ($article_id = $targets.article_id.data)
## Get Country from Locale
#set ($country_from_locale = "")
#if ($locale == "de_DE")
#set ($country_from_locale = "germany")
#elseif ($locale == "en_GB")
#set ($country_from_locale = "united-kingdom")
#elseif ($locale == "es_ES")
#set ($country_from_locale = "spain")