Quantcast
Viewing all articles
Browse latest Browse all 9076

SimpleAddress from PropertyUrl

Hi,

  1.  I have certain page having both long (Page1/Page2/MyPage) and simple (MyPage) addresses.
  2.  Then I want to reference it in certain place via PropertyUrl:
            [CultureSpecific]
            [Required]
            [BackingType(typeof(PropertyUrl))]
            [Display(
                Name = "Link",
                Description = "Link to the page",
                GroupName = SystemTabNames.Content,
                Order = 1)]
            public virtual Url Link { get; set; }
  3.  I want the simple address (if it exists) to be used for the routing or url rendering but not the long one.

I am looking for some elegant solution for it if it exists. Thanks in advance


Viewing all articles
Browse latest Browse all 9076

Trending Articles