Custom module - object type not listed

Tom Troughton asked on February 27, 2015 13:19

I'm looking into creation of custom modules by following Kentico's documentation example.

I have got as far as Building the module interface where I've added the element to CMS -> Administration -> Custom in the User interface tab. The docs then say to Switch to the element's Properties tab and Select Custom office (companyoverview.office) as the Object type. However Custom office (companyoverview.office) is not in the list of object types.

I've been back over this a few times and feel I haven't missed any steps but I've clearly done something wrong. How is this object type list populated? What might I have missed?

Thanks.

Correct Answer

Brenden Kehren answered on February 27, 2015 19:37

Most likely caching. After you add your resource string, clear the cache within Kentico and that should show it immediately.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on February 27, 2015 14:06 (last edited on February 27, 2015 14:07)

You need to add the Resource string to the localization app. After step 9 of "Adding classes to modules" you will see the instructions for this. Right now it's probably listed as [object.....]

Create a resource string for displaying the class's object type name:

1) Open the Localization application.
2) On the Resource strings tab, click New string.
3) Enter the following Key: ObjectType.CompanyOverview_Office (the general format is ObjectType.<class code name with an underscore>)
4) Type the following text for the English version of the key: Custom office
5) You can optionally enter translations for other languages that you use for the administration interface.

Click Save.
3 votesVote for this answer Mark as a Correct answer

Tom Troughton answered on February 27, 2015 18:17

Thanks Brenden. Weird, I had done this. Just went back in (after a couple of hours), and can now see it listed without making any changes??

0 votesVote for this answer Mark as a Correct answer

Surendra Sharma answered on April 27, 2015 14:07 (last edited on April 27, 2015 14:08)

Hi Brenden Kehren,

Create a resource string for displaying the class's object type name: What is "object type name" this same problem in my code but i already create Resource string to the localization app. I not fount object type in object type drop-down list "Custom office (companyoverview.office)" .

0 votesVote for this answer Mark as a Correct answer

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