November Happy Hour will be moved to Thursday December 5th.

Accessing PageData properties using brackets

Vote:
 

In pursuing support for old constructs when upgrading I have a question regarding the use of [] to retreive property values as in

aPage["MainBody"]. It clearly works well in 7.5, but how about 9.5 or 10?

This is of course still a syntactically valid way to access property values, but it is still applicable in the coming versions of EPiServer?

Whereas most applicatons of today rely and benefit from a programmatic control of the page types, the old sites (dated from the time before Page type builder) did not have this possibility, and hence it was the standard way of handling page properties.

Thanks!

Christian Wallgren

#174905
Feb 07, 2017 15:23
Vote:
 

Hi Christian,

You can still use magic strings, but this is not a recommended approach. 

#174911
Feb 07, 2017 15:53
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.