Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am writing a UserControl to dynamically create an Edit / Update form based on the properties of a Document Type.
I am using the following code:
var dataEditor = propertyType.DataTypeDefinition.DataType.DataEditor;var fullTypeName = dataEditor.GetType().ToString();
but fullTypeName equals "umbraco.editorControls.textfield.TextFieldEditor" for both Textstring and TextboxMultiple properties!?
Is there a way to detect which type it is, so that I can create a multi-line text box if necessary?
Check the Id which should be a guid
Cheers,
/Dirk
Not having much luck with that ... which GUID should I be checking and what should I check it against (I assume it's the GUID reported on the Data Types page in Umbraco)?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Detect Textstring or TextboxMultiple
I am writing a UserControl to dynamically create an Edit / Update form based on the properties of a Document Type.
I am using the following code:
but fullTypeName equals "umbraco.editorControls.textfield.TextFieldEditor" for both Textstring and TextboxMultiple properties!?
Is there a way to detect which type it is, so that I can create a multi-line text box if necessary?
Check the Id which should be a guid
Cheers,
/Dirk
Not having much luck with that ... which GUID should I be checking and what should I check it against (I assume it's the GUID reported on the Data Types page in Umbraco)?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.