Adding form controls to a custom CMS Module

Beau Cowan asked on March 18, 2014 17:33

I'm creating a new custom module in the CMS that will export part of the site, and I want to include the document selection form control, or at least have an ability to select a certain page type from this module.

I've checked through the documentation and haven't found anything that helps in regards to integrating form controls into modules. If anyone has a suggestion on how I can accomplish this so that it looks appealing to the client, that would be helpful. I want to try and make it work as much like the Content tab as possible. Especially with opening a modal and then being able to use the document selector based on whichever site you are on.

Correct Answer

Brenden Kehren answered on March 19, 2014 07:17

You can simply reference that form control you want in your module's aspx page by its physical location in the site. For instance, <%@ Register Src="~~/CMSModules/Content/FormControls/Documents/selectdocument.ascx" TagPrefix="uc1" TagName="DocPicker" %>

1 votesVote for this answer Unmark Correct answer

Recent Answers

Beau Cowan answered on March 19, 2014 13:46

Thank you, that did the trick.

0 votesVote for this answer Mark as a Correct answer

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