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 trying out some razor and want to know if the following can be done.
Bear with me !
Lets say I have a page with the page alias
pageAlias
and within that I have a field called
nameAlias which has a datatype of Textstring.
Can I list the datatype in the template with code similar to...
@Model.pageAlias.nameAlias.dataType
Which would output the word Textstring
That's the question, can I show the dataType of a page property within the razor model
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
Razor and Datatypes... Can I show the datatype of a page property ?
I am trying out some razor and want to know if the following can be done.
Bear with me !
Lets say I have a page with the page alias
pageAlias
and within that I have a field called
nameAlias which has a datatype of Textstring.
Can I list the datatype in the template with code similar to...
@Model.pageAlias.nameAlias.dataType
Which would output the word Textstring
That's the question, can I show the dataType of a page property within the razor model
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.