November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi Ethan
Which version of the LinkItemProperty do you have in your solution? There was a bug in the old version of LinkItemProperty with CMS 12.6.0. Please upgrade to latest LinkItemProperty 1.0.2.
Editing broken in Epi 12.6.0 · Issue #6 · episerver/EPiServer.Labs.LinkitemProperty (github.com)
Vincent -
There seems to be a problem with the labs link item package. The documentation states that you need to add a tag for the rendering:
@Html.PropertyFor(x => x.CurrentPage.Link, new { Tag = EPiServer.Labs.LinkItemProperty.LinkItemRendering.Tag })
But that LinkItemRendering.Tag does not seem to exist.
Ethan
@Ethan, your sample code is not the same what is instructed in the documentation. Your property is missing the "[LinkItemProperty]" and "[BackingType(typeof(PropertyLinkCollection))]"
https://github.com/episerver/EPiServer.Labs.LinkitemProperty#using-linkitem-property
Vincent and Antti -
I am confused. I was under the impression that LinkItem as a property can now be used natively, without the labs nuget package. If that is tha case, how do I use it? If that is not the case, I cant get the nuget package to work either.
Hi Ethan
I don't see anywhere mentioned LinkItem has graduated from Lab project, so you have to install the nuget pacakge. I have created a sample project, you can go through the commits to get all details as you need. I hope it helps.
This is because EPiServer.CMS.Core packages are released in a separate release cycle from EPiServer.CMS.UI packages meaning at some times for features that requires both CMS Core part and CMS UI parts there might be CMS core packages released without a proper UI for the feature. That is the case here, the API functionality is released but the related editor is not yet released (but should be in a recent future). This should replace the need for the Labs project wich will be archived
I saw online that as of 12.6 I can use LinkItem as a property natively. I have done this:
And this compiles. But the edtiing experience is not correct. Do I need to something to enable the editing experience?