Also as an aside...you cannot install uBlogsy on an existing site if you've manually created a datatype (or installed any other package that creates a datatype) as your code CreateMonthNameWithSelectedFormat and CreateDayNameWithSelectedFormat tests for hardcoded prevalue ids (which will be different as these ids are auto incrementing identity columns in the database). Thus in my database, id 34 does not represent "2 digit day numbers" its associated with a completely different datatype. My id for this is 42.
You might want to change it to look up the text string associated with the id and test on that instead. Eg, id 34 42 = "2 digit day numbers"...then change the switch statement to test the string description.
Obviously if someone was to then change the prevalue description, the code would break again...but this would be more unlikely I would have thought.
Apart from that I'm loving your package...especially now its razor based as its even easier to customise.
MacroEngines Error
Hey Anthony,
The umbraco core for 4.7.1 has changed and is causing issues with uBlogsy 2.0 Beta.
Specifically, "Method not found: umbraco.MacroEngines.DynamicNodeList.get_Items()".
I get this error with 4.7.1 but if I rollback just umbraco.MacroEngine.dll to an earlier pre 4.7.1 nightly it works.
Cheers
Trevor
Cheers.
2.0 was built before 4.7.1 came out.
Also as an aside...you cannot install uBlogsy on an existing site if you've manually created a datatype (or installed any other package that creates a datatype) as your code CreateMonthNameWithSelectedFormat and CreateDayNameWithSelectedFormat tests for hardcoded prevalue ids (which will be different as these ids are auto incrementing identity columns in the database). Thus in my database, id 34 does not represent "2 digit day numbers" its associated with a completely different datatype. My id for this is 42.
You might want to change it to look up the text string associated with the id and test on that instead. Eg, id 34 42 = "2 digit day numbers"...then change the switch statement to test the string description.
Obviously if someone was to then change the prevalue description, the code would break again...but this would be more unlikely I would have thought.
Apart from that I'm loving your package...especially now its razor based as its even easier to customise.
Thanks, Trevor.
is working on a reply...