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

Can I use shortcut as a property in a block

Vote:
 

Page has an property called shortcut.
Can I also use this property in the block?
It jump to another page when I click on the block, 
Now PageReference cannot meet all needs, because it can only jump to internal pages.

#227913
Sep 16, 2020 8:27
Vote:
 

You can use LinkItem:

https://world.episerver.com/blogs/grzegorz-wiechec/dates/2020/6/episerver-labs---linkproperty/

Or Url property

public virtual Url Link { get; set; }
#227914
Sep 16, 2020 8:44
Chen Nan - Sep 16, 2020 9:42
Thanks Tomas,I also want to ask, is ‘LinkItemProperty‘ a new property added by CMS 11?
Tomas Hensrud Gulla - Sep 16, 2020 9:45
It's not included in the core product yet, but available as a nuget package:
https://nuget.episerver.com/package/?id=EPiServer.Labs.LinkItemProperty

It requries CMS 11.
Chen Nan - Sep 16, 2020 10:06
Thanks again for your help.
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.