问题标签 [liferay-7.1]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
liferay - How to fetch the author profile picture on WebContent template?
Can someone tell me how to fetch the web content author image in web content template? When I tried with the user object, it's returning the current logged in user and not the actual one.
I can fetch the author name and id by using the key
<#assign authorId = .vars['reserved-article-author-id'].data>
<#assign authorName = .vars['reserved-article-author-name'].data>
I have used the below code to fetch the content author image but it returns the current loggedin user.
<#assign author-img = user.getPortraitURL(themeDisplay)>
But it is returning the current logged in user image
I have also tried with the taglib
<@liferay_ui["user-display"] userId="userId" />, but its failing with a message "Failed to set JSP tag parameter "author" (declared type: boolean, actual value's type: String). See cause exception for the more specific cause...
Thanks
liferay - 启动 Liferay 7.1 时出现 Class Cast 异常
Liferay 7.1 启动时出现 ClassCastException:
任何帮助,将不胜感激
谢谢
jax-rs - 使用 CXF JAX-RS 的 Liferay 7.1 自定义 portlet
当我的捆绑包尝试启动时出现以下错误:
当我尝试部署 OSGi 模块时会发生这种情况。
我在用着:
- Liferay 7.1.2-ga3
- “org.apache.cxf:cxf-rt-rs-client:3.2.5”
- “javax.ws.rs:javax.ws.rs-api:2.1”
编辑 1 完整的堆栈跟踪
请注意,JAX RS RuntimeDelegate 的默认实现是org.apache.cxf.jaxrs.impl.RuntimeDelegateImpl
编辑 2
liferay - 启动问题 - Liferay 7.1.2 GA3 -javax.servlet.ServletException
我在 Windows 环境中使用 Mysql 5.7 db 启动 Liferay 7.1.2 GA3 (CE) 时遇到问题。它以超音速模式正确重启,但与 mysql 连接会引发这些错误。
我尝试下载新的 tomcat 并删除并重新创建 db..etc。但这不应该是一个问题。因为我尝试手动创建表,从 Liferay 下载 Portal DB 并执行。还是同样的问题。
我认为是数据库问题。所以,从 Windows 系统中完全删除了 mysql 服务器并重新安装。同样的问题,我认为是捆绑问题。所以,下载了最新的 7.1 包(也试过 7.2)。同样的问题。为确保 mysql 权限没有任何问题,我尝试手动创建、更改表和索引...等...,权限没有问题。
我用相同的数据库下载了 Liferay 6.2,它工作正常,7.X 版本与 5.7 一起出现问题。
Liferay 7.x 是否存在与 windows 环境或病毒软件相关的问题?liferay 论坛中的相关主题: https ://community.liferay.com/forums/-/message_boards/message/113084018
liferay - Liferay 7.1 - 复制默认主题的问题
我创建了我的自定义主题,构建它,一切顺利。但是当我将默认主题文件(css、js、图像等)复制到我的自定义主题 src 并部署它时,会出现一些错误:
...还有更多:(感谢您的帮助!
liferay - 如何覆盖核心 Liferay 7.1 语言接口以覆盖其方法
在此处输入图像描述我想覆盖 LIferay 7.1 语言界面,我将在其中编写代码以从我们的自定义表中获取属性并将其分配给键,而不是从 liferay 翻译或属性文件中获取
获取导入包:com.liferay.portal.kernel.language;version="[7.2.0,7.3.0)"_ [Sanitized] at org.eclipse.osgi.container.Module.start(Module.java:444) 部署 portlet 时出错
docker - Dockerized Elasticsearch 节点不适用于 Liferay 7.1
Liferay 在启动时无法识别我的 Elasticsearch 集群。这是我的 docker-compose 配置:
com.liferay.portal.search.elasticsearch6.configuration.ElasticsearchConfiguration.config 文件内容
启动 docker-compose 时,我可以访问我的两个 ES 集群: http: //127.0.0.1 :9299 / 和http://127.0.0.1:9298/
但是,当 liferay 启动时,它无法访问 ES 节点:
有人试过这个配置吗?任何帮助,将不胜感激。谢谢 :-)
liferay - Liferay 7.1 Free 标记模板中的访问页面自定义字段
我在 Liferay 7.1 中设置了一个名为 CustomLogo 的页面自定义字段。我想在免费标记模板中访问它的值。在阅读了文档和一些与之相关的帖子后,我使用以下代码访问自定义字段
我已经为自定义字段设置了查看权限(所有用户角色)。我还检查了列名和值是否在 liferay 数据库(扩展表)中正确设置。但是我收到以下错误:
在观察堆栈跟踪时,我看到有一个空指针异常,它指出:
如上所述,我已经为自定义字段设置了查看权限。我还仔细检查了密钥、拼写错误和可能的错误,但没有成功。
如果您有任何建议或我错过的事情,请告诉我。谢谢
liferay-7.1 - Liferay 7 粘土管理工具栏
如何在 Clay 管理工具栏中添加高级搜索?
如何添加高级搜索功能?
liferay - 如何让用户与 Liferay 中的团队相关联
我需要获取与 Liferay 中的组关联的团队。
- 首先我创建了用户
- 然后我做了一个群
- 然后我组了一个团队
- 团队与组相关联
- 所以我获取正在登录的用户
- 然后我获取与之关联的组
- 现在我无法从组中获取团队
需要一些帮助
我做这件事,但是,从这里,我得到了所有创建的团队,我需要一个与特定组相关联的团队