Journal Templates and VM variables
来源:互联网 发布:乾隆王朝 知乎 编辑:程序博客网 时间:2024/06/07 13:54
参考:
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Journal+Template+(Velocity)
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Journal+Internal+API
在Class :com.liferay.portlet.journal.util.JournalUtil 中定义的。 Here you go.... these are available in content when used in the format:
@variable@
example:
@theme_image_path@/mybigawesome_banner.jpg
tokens.put("company_id", String.valueOf(themeDisplay.getCompanyId()));
tokens.put("group_id", String.valueOf(groupId));
tokens.put("cms_url", themeDisplay.getPathContext() + "/cms/servlet");
tokens.put("image_path", themeDisplay.getPathImage());
tokens.put(
"friendly_url_private_group",
themeDisplay.getPathFriendlyURLPrivateGroup());
tokens.put(
"friendly_url_private_user",
themeDisplay.getPathFriendlyURLPrivateUser());
tokens.put(
"friendly_url_public", themeDisplay.getPathFriendlyURLPublic());
tokens.put("main_path", themeDisplay.getPathMain());
tokens.put("portal_ctx", themeDisplay.getPathContext());
tokens.put(
"portal_url", Http.removeProtocol(themeDisplay.getURLPortal()));
tokens.put("root_path", themeDisplay.getPathContext());
tokens.put("theme_image_path", themeDisplay.getPathThemeImages());
tokens.put("theme_root_path", themeDisplay.getPathThemeRoot());
- Journal Templates and VM variables
- Oracle VM Templates downloading URL
- Templates and Smart Pointers
- Templates and Collection Classes
- Coding templates and formatters
- Templates and Generic Programming
- python_Django_3:Views and templates
- wpf style and templates
- 8.3 Variables and parameters
- Incrementing and Decrementing Variables
- Using Data and Variables
- mutex and Condition Variables
- Global and Local Variables
- Blocks and Variables
- Blocks and Variables
- static variables and functions
- Global and Local Variables
- Local variables and pointer
- oracle job建立(定时执行任务)
- javascript让弹出的窗口永远居中
- 利用C语言获取网页源代码
- div挡住select的5种方法
- memset 是什么意思,怎么用
- Journal Templates and VM variables
- 揭秘山寨手机“四寨主”:都高仿苹果iPhone
- Chrome如何手动安装Flash插件
- 081202 记录
- 利用SAP内置功能生成Search Help
- 网站前端优化一些小经验
- 兼容ie firefox 半透明效果
- ‘构造函数’链实现继承?
- URL中的JavaScript