I am trying to set up a form control in a document type for Kentico where there would be a list of all documents on the site of a given document type.
I can get the document list if i set "Object Type" to cms.document
As I understand this then pulls the date from the CMS_Document table. Unfortunately that table does not have the ClassID field to filter by document type.
I instead tried setting Object Type to cms.tree, but i get an error Object type 'cms.tree' not found The same thing happens when I try to use my own document type. As I understand the documentation I should be able to pass in any value here from CMS_Class database table, but it is not working. What are legal types that I can use in that field, and how can I filter my list down by document type?
Sorry my mistake, use cms.document, set the where clause to classname="your.classname", set the return column to DocumentForeignKeyValue and the Display name to {%DocumentName%}
cms.document
classname="your.classname"
DocumentForeignKeyValue
{%DocumentName%}
Try using cms.class and specify the WHERE to be classname = "your.classname"
cms.class
classname = "your.classname"
Please, sign in to be able to submit a new answer.