- Create Custom attribute for User (e.g. Location")
- Make sure to set permissions so that users can view the attribute
- Create Vocabulary ("Location") (Must be a global vocabulary!!!)
- Add categories to vocabulary (e.g. "Chicago")
- Set "Chicago" to location user attribute for User.
- Categorize content with "Chicago" from location vocabulary
- Add asset publisher and specify "Location" as the user profile attribute to personalize upon
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
include-and-override=portal-developer.properties | |
#portal.instance.protocol=https | |
web.server.https.port=443 | |
web.server.protocol=https | |
redirect.url.security.mode=domain | |
# | |
# The portal can authenticate users based on their email address, screen | |
# name, or user ID. |
First get a fresh clone
git clone [repo]
Or if you had the repo already local check the status
git status
Let's create new branch
git checkout -b [new-branch]
Add all you new stuff
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
<#assign companyId = themeDisplay.getCompanyId()/> | |
<#assign groupId = themeDisplay.getScopeGroupId()/> | |
<#assign userId = themeDisplay.getRealUserId() /> | |
<#assign locale = themeDisplay.getLocale() /> | |
<#assign ddlService = serviceLocator.findService('com.liferay.dynamic.data.lists.service.DDLRecordLocalService') /> | |
${companyId} | |
${groupId} | |
${themeDisplay.getRealUserId()} | |
${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
<#-- https://gist.github.com/jverweijL/67b929d11465058654aacc48d6574c9b --> | |
<#if entries?has_content> | |
<#list entries as curEntry> | |
<#assign priority=curEntry.getPriority() > | |
<div class="float-left"> | |
<a href="">${curEntry.getTitle(locale)}</a> | |
</div> | |
<div class="float-right"> | |
<#if priority gt 0> | |
<svg class="lexicon-icon"> |
- Set mysql to lowercase only
--lower-case-table-names=1
- Turn off Autogenerate Structure Key and Template Key
# Use your own keys instead:
GLOBAL.STRUCTURE.DISH
GLOBAL.TEMPLATE.MENU_LIST
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
<#if entries?has_content> | |
<style> | |
#<@portlet.namespace />carousel .carousel-item { background-color: #000; height: 400px; overflow: hidden; text-align: center; /*width: 1024px;*/ } | |
#<@portlet.namespace />carousel .carousel-item img { max-height: 400px; /*max-width: 1024px;*/ } | |
</style> | |
<div id="<@portlet.namespace />carousel"> | |
<#list entries as curEntry> | |
<div class="carousel-item image-viewer-base-image"> | |
<#assign renderer = curEntry.getAssetRenderer() /> | |
<#assign journalArticle = renderer.getArticle() /> |
I found another trick to recreate the table
- uninstall the module
- stop liferay
- delete FROM ServiceComponent where buildNamespace='FOO';
- delete FROM Release_ WHERE servletContextName = 'com.acme.foo.sb.service';
- drop TABLE IF EXISTS 'namespace_entity';
- start liferay
sudo docker pull mysql:5.7
sudo docker run --name liferay-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.7