EL functions provided by OpenCMS taglib

From OpenCms Wiki
Revision as of 10:38, 20 September 2010 by Makub (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The OpenCMS taglib provides tags, but also functions. You can see their definition in the WEB-INF/opencms.tld file. Just decalre the taglib as usual:

<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

cms:vfs

Provides access to VFS (Virtual File System), returns an instance of org.opencms.jsp.util.CmsJspVfsAccessBean. Example:

${cms:vfs(pageContext).context.locale}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox