Skip to content
Snippets Groups Projects
Commit 0ef8e090 authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

#1069144 Favorites: contentdescription added

parent 9250d6ce
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,10 @@ ...@@ -60,6 +60,10 @@
<name>#PROVIDER_AGGREGATES</name> <name>#PROVIDER_AGGREGATES</name>
<useAggregates v="true" /> <useAggregates v="true" />
</entityProvider> </entityProvider>
<entityField>
<name>DESCRIPTION</name>
<titleProcess>%aditoprj%/entity/Favorite_entity/entityfields/description/titleProcess.js</titleProcess>
</entityField>
</entityFields> </entityFields>
<recordContainers> <recordContainers>
<jDitoRecordContainer> <jDitoRecordContainer>
...@@ -92,6 +96,9 @@ ...@@ -92,6 +96,9 @@
<jDitoRecordFieldMapping> <jDitoRecordFieldMapping>
<name>TITLE.value</name> <name>TITLE.value</name>
</jDitoRecordFieldMapping> </jDitoRecordFieldMapping>
<jDitoRecordFieldMapping>
<name>DESCRIPTION.displayValue</name>
</jDitoRecordFieldMapping>
<jDitoRecordFieldMapping> <jDitoRecordFieldMapping>
<name>UID.value</name> <name>UID.value</name>
</jDitoRecordFieldMapping> </jDitoRecordFieldMapping>
......
import("system.result");
import("system.translate");
result.string(translate.text("Description"));
\ No newline at end of file
...@@ -151,7 +151,7 @@ function buildFavorites(favos, objecttype) ...@@ -151,7 +151,7 @@ function buildFavorites(favos, objecttype)
loadConfig.entity(ContextUtils.getEntity(objecttype)); loadConfig.entity(ContextUtils.getEntity(objecttype));
loadConfig.uids(ids); loadConfig.uids(ids);
loadConfig.count(200); loadConfig.count(200);
loadConfig.fields(["#CONTENTTITLE", "#IMAGE", "#UID"]); loadConfig.fields(["#CONTENTTITLE", "#CONTENTDESCRIPTION", "#IMAGE", "#UID"]);
try { try {
var loadedRows = entities.getRows(loadConfig); var loadedRows = entities.getRows(loadConfig);
...@@ -180,6 +180,7 @@ function getFavoriteWith(loadedRow, builtFavos, favoriten, pRowid, objecttype) ...@@ -180,6 +180,7 @@ function getFavoriteWith(loadedRow, builtFavos, favoriten, pRowid, objecttype)
var image = loadedRow["#IMAGE"]; var image = loadedRow["#IMAGE"];
var rowid = favoriten[b]["rowid"]; var rowid = favoriten[b]["rowid"];
var title = loadedRow["#CONTENTTITLE"]; var title = loadedRow["#CONTENTTITLE"];
var description = loadedRow["#CONTENTDESCRIPTION"];
var id = favoriten[b]["id"]; var id = favoriten[b]["id"];
var user = favoriten[b]["group"]["groupuser"]; var user = favoriten[b]["group"]["groupuser"];
...@@ -191,6 +192,7 @@ function getFavoriteWith(loadedRow, builtFavos, favoriten, pRowid, objecttype) ...@@ -191,6 +192,7 @@ function getFavoriteWith(loadedRow, builtFavos, favoriten, pRowid, objecttype)
image, image,
rowid, rowid,
title, title,
description,
id, id,
user user
]); ]);
......
...@@ -55,6 +55,10 @@ ...@@ -55,6 +55,10 @@
<name>d68cc010-2d84-43d1-a333-39f9fdd3a23a</name> <name>d68cc010-2d84-43d1-a333-39f9fdd3a23a</name>
<entityField>TITLE</entityField> <entityField>TITLE</entityField>
</neonTreeTableColumn> </neonTreeTableColumn>
<neonTreeTableColumn>
<name>bd73a21a-78b9-4921-b184-8c410a8c7c08</name>
<entityField>DESCRIPTION</entityField>
</neonTreeTableColumn>
</columns> </columns>
</treeTableViewTemplate> </treeTableViewTemplate>
</children> </children>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment