Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm just building a new Umbraco project and just realised that the Archetype Project compatibility for Umbraco 7.6 is 33%.
Is it safer to use last stable version of 7.5?
I use it in my projects. It works great.
I had some issues to start with, but then I found that it was to do with the new Related Links datatype and not to do with Archetype.
as I need to have 2 Related Links in one item have you managed to make it work or you just skipped Related Links?
I have recently upgrade a 7.5.3 to 7.6.4 and initially I had issues with ArcheType. The solution I followed was to disable the new Property Value converters.
In the umbracoSettings.config file try setting EnablePropertyValueConverters to false
With this setting applied ArcheType seems to work OK I have yet to see any issues but there may be some so its worth testing.
At some point the setting will need to be changed back but this could be done when ArcheType fully support 7.6
work that way?
I thought I'll give you my update and finding.
I am almost finished with the backend and I had no problem using ArcheType with Umbraco 7.6.
The issue I had wasn't related to ArcheType, but in 7.6, Content Picker and Image Picker was returning Udi, instead of ID.
Here are some of my code for reference.
var headerSample = Model.Content.Header.FirstOrDefault(); //header is generated by the Model Builder
var storeListString = headerSample.Properties.FirstOrDefault(x => x.Alias == "stores").Value.ToString(); //get ArcheType data in string
var archeObj = JsonConvert.DeserializeObject<ArchetypeModel>(storeListString); //Convert it into Object
foreach (var item in archeObj)
if (item.Properties.Count() != 0)
var imageUdi = item.GetValue("image"); //Now in Umbraco 7.6, it returns Udi instead of ID
MyHelper.getUrlFromUdi(imageUdi); //Converting from Udi to Url
//and my helper class
public class MyHelper()
public static string getUrlFromUdi(string imageUdi)
var imageUrl = "";
var udiContent = Udi.Parse(imageUdi).ToPublishedContent();
imageUrl = udiContent.Url();
Check out this post it explains how to get media, content and members using the new udi. You don't need the helper you created. It's so simple.
I'm on my phone here so bear with me.
Instead of the 2 lines which start
var imageUdi = ...
Just use this
ImageUrl = item.GetValue
The editor remove what I put in anglebrackets after GetValue
It was GetValue left angle bracket IPublishedContent right angle bracket ("image")
FYI, Paul, you can use the code snippet syntax to avoid the angle bracket issue in the forum:
ImageUrl = item.GetValue<IPublishedContent>("Image").Url;
For those who mentioned Related Links, I would avoid that entirely (you can use Archetype for similar functionality): https://code101.net/links-in-umbraco-are-broken-but-alternatives-exist-1fe89aae2093
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted