volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

PropertyPageReference Hyperlink

Ok, so this might be a longshot, but: In previous versions we've used the following code to alter the output from pageref-propertys, but now with CMS 5 pageLink always ends up as null, which implies that PropertyPageReference isn'nt compatible with HyperLink. Does somebody know why, and maybe have a suggestion for a workaroud?

 

        protected override void AddedControl(System.Web.UI.Control control, int index)
        {
            try
            {
                switch(this.InnerProperty.GetType().ToString())
                {
                    case "EPiServer.Core.PropertyPageReference" :
                        base.AddedControl(control, index);
                        HyperLink pageLink = control as HyperLink;
                        if(pageLink != null)
                        {
                               //do stuff with pageLink here

                        }
                    break;

                }

            }
        }            

 

#19305
Apr 02, 2008 17:21

Would like to know the same thing.

I want to be able to edit the Link Text that is being rendered (in some cases it needs to be different from PageName).

#35310
Dec 03, 2009 15:03
* 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.