else {
return "";
}
}
else if (name.equals("level")) {
WGContentNavigator nav = new WGContentNavigator(null, new WebTMLLanguageChooser(db(), this));
return nav.getContentLevel(content);
}
else if (name.equals("index")) {
WGContentNavigator nav = new WGContentNavigator(null, new WebTMLLanguageChooser(db(), this));
return nav.getSiblingsIndex(content);
}
else if (name.equals("navindex")) {
WGContentNavigator nav = new WGContentNavigator(WGContent.DISPLAYTYPE_NAVIGATOR, new WebTMLLanguageChooser(db(), this));
return nav.getSiblingsIndex(content);
}
else if (name.equals("language")) {
return content.getLanguage().getName();
}
else if (name.equals("languagetitle")) {
return content.getLanguage().getTitle();
}
else if (name.equals("attachments")) {
return content.getFileNames();
}
else if (name.equals("doctype") || name.equals("contenttype")) {
if (!content.isDummy()) {
return content.getStructEntry().getContentType().getName();
}
else {
return null;
}
}
else if (name.equals("contenttypetitle")) {
return content.getStructEntry().getContentType().getNameForLanguage(getpreferredlanguage());
}
else if (name.equals("contenttypedescription")) {
return content.getStructEntry().getContentType().getDescriptionForLanguage(getpreferredlanguage());
}
else if (name.equals("siblings")) {
WGContentNavigator nav = new WGContentNavigator(null, new WebTMLLanguageChooser(db(), this));
return new Integer(nav.getSiblingsCount(content));
}
else if (name.equals("workflow")) {
//return content.getStructEntry().getContentType().getMetaData(WGContentType.META_WORKFLOW);
return content.getStructEntry().getWorkflowName();