diff --git a/ccm-sci-types-department/doc/freemarker/ccm-sci-department.md b/ccm-sci-types-department/doc/freemarker/ccm-sci-department.md new file mode 100644 index 000000000..fff80fe08 --- /dev/null +++ b/ccm-sci-types-department/doc/freemarker/ccm-sci-department.md @@ -0,0 +1,66 @@ +# Freemarker functions for SciDepartment items + +Import Path +: `/ccm-sci-types-department.ftl` + +## `getDescription(data: Node): HtmlString` + +Returns the description of the department. + +## `getShortDescription(data: Node): String` + +Returns the short description of the department. + +## `getDepartmentHeads(data: Node): Sequence` + +Gets the heads of the department. + +## `getDepartmentHeadId(head: Node): String` + +Gets the ID of a head of a department. + +## `getDepartmentHeadLink(head: Node): String` + +Gets the link to the detail view of head of a department. + +## `getDepartmentViceHeads(data: Node): Sequence` + +Gets the vice heads of the department. + +## `getDepartmentViceHeadId(head: Node): String` + +Gets the ID of a vice head of a department. + +## `getDepartmentViceHeadLink(head: Node): String` + +Gets the link to the detail view of vicehead of a department. + +## `getDepartmentSecretariats(data: Node): Sequence` + +Gets the secretariats of the department. + +## `getDepartmentSecretariatId(sec: Node): String` + +Gets the ID of a secretariats of a department. + +## `getDepartmentSecretariatLink(sec: Node): String` + +Gets the link to the detail view of secretariats of a department. + +## `getProjects(data: Node): Sequence` + +Returns the list of projects assigned to the department. + +## `getProjectId(project: Node): String` + +Gets the id of a project. + +## `getProjectLink(project: Node): String` + +Returns the link to the detail view of a project. + + + + + + diff --git a/ccm-sci-types-department/web/themes/freemarker/ccm-sci-types-department.ftl b/ccm-sci-types-department/web/themes/freemarker/ccm-sci-types-department.ftl index 803f76d39..9cd7b0930 100644 --- a/ccm-sci-types-department/web/themes/freemarker/ccm-sci-types-department.ftl +++ b/ccm-sci-types-department/web/themes/freemarker/ccm-sci-types-department.ftl @@ -8,7 +8,7 @@ <#import "/ccm-cms/content-item.ftl" as ContentItem> <#function getDescription data> - <#if (data["./instituteDesc"]?size > 0)> + <#if (data["./departmentDesc"]?size > 0)> <#return data["./departmentDescription"]> <#elseif (data["./description"]?size > 0)> <#return data["./description"]>