Uni Selector form control what are legal Object Type values?

Andrey Lurye asked on September 17, 2014 22:54

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?

Correct Answer

Brenden Kehren answered on September 18, 2014 18:10

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%}

3 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on September 18, 2014 02:22

Try using cms.class and specify the WHERE to be classname = "your.classname"

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.