This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #set ($logFactory = $portal.getClass().forName('com.liferay.portal.kernel.log.LogFactoryUtil')) | |
| #set ($log = $logFactory.getLog('mylog')) | |
| $log.error("Here!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/sql/portal-tables.sql b/sql/portal-tables.sql | |
| index 01a01ca..1cf2ef6 100644 | |
| --- a/sql/portal-tables.sql | |
| +++ b/sql/portal-tables.sql | |
| @@ -224,7 +224,7 @@ create table BlogsEntry ( | |
| trackbacks TEXT null, | |
| smallImage BOOLEAN, | |
| smallImageId LONG, | |
| - smallImageURL VARCHAR(75) null, | |
| + smallImageURL STRING null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1842,9 +1842,10 @@ public class PortalImpl implements Portal { | |
| if (pos >= 0) { | |
| host = host.substring(0, pos); | |
| } | |
| - } | |
| - else { | |
| - host = null; | |
| + | |
| + if (!Validator.isDomain(host)) { | |
| + host = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #* @vtlvariable name="portletNamespace" type="java.lang.String" *# | |
| #* @vtlvariable name="portal" type="com.liferay.portal.util.Portal" *# | |
| #* @vtlvariable name="getterUtil" type="com.liferay.portal.kernel.util.GetterUtil" *# | |
| #* @vtlvariable name="stringUtil" type="com.liferay.portal.kernel.util.StringUtil" *# | |
| #* @vtlvariable name="max-members" type="com.liferay.portlet.journal.util.TemplateNode" *# | |
| #* @vtlvariable name="team-name" type="com.liferay.portlet.journal.util.TemplateNode" *# | |
| #* @vtlvariable name="section-members" type="com.liferay.portlet.journal.util.TemplateNode" *# | |
| #* @vtlvariable name="groupId" type="java.lang.String" *# | |
| #* @vtlvariable name="sectionMembers" type="java.lang.String" *# | |
| #* @vtlvariable name="locale" type="java.util.Locale" *# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <aui:script use="aui-base,datasource-io,datasource-jsonschema,querystring-stringify-simple"> | |
| <portlet:resourceURL var="findUserURL"> | |
| <portlet:param name="action" value="findUser" /> | |
| </portlet:resourceURL> | |
| var coachSearch = A.one('#<portlet:namespace />coachSearch'), | |
| userDataSource = new A.DataSource.IO({ | |
| source: '<%= findUserURL %>' | |
| }), | |
| coachSearchCallbacks = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <filter> | |
| <filter-name>SSO Ntlm Post Filter</filter-name> | |
| <filter-class>com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter</filter-class> | |
| <init-param> | |
| <param-name>url-regex-ignore-pattern</param-name> | |
| <!-- for 6.0.x, not sure about 6.1 --> | |
| <param-value>^.*(p_p_id=20).*(_20_struts_action=%2Fdocument_library%2Fedit_file_entry).*(_20_cmd=add).*$</param-value> | |
| </init-param> | |
| </filter> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil | |
| fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(51189, '17101') | |
| DLFileEntryLocalServiceUtil.deleteFileEntry(fileEntry) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="http://localhost:8080/html/js/liferay/widget.js" type="text/javascript"></script> | |
| <script type="text/javascript"> | |
| Liferay.Widget({ url: 'http://localhost:8080/widget/web/guest/home/-/{portletId}'}); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| The old color #203d65 | |
| */ | |
| .lfr-actions.portlet-options .lfr-trigger strong a { | |
| text-indent: -9999px; | |
| } | |
| .opens-new-window-accessible { | |
| display: none; |