I need to get a reference to an Umbraco Macro from another Macro - and I've found the generic control with a recursive search. However, I now need to cast it to an Umbaco Macro and I can't for the life of me find the namespace 'umbraco.presentation.templateControls.Macro'
I've included these directives:
using umbraco.cms.businesslogic.macro;
using umbraco.DataLayer;
using umbraco.BusinessLogic;
Casting using businesslogic.Macro gives a casting error - wrong type.
OK fixed this. My development project was targetting 3.5, while my Umraco installtion was tagetting 4.0. So the umbaco dll I was using wasn't working correctly (wrong environment.)
It appears you can't run 4.0 in VS 2008, so I've reverted to a previous version of Umbraco and we're away.
umbraco.presentation.templateControls.Macro
I need to get a reference to an Umbraco Macro from another Macro - and I've found the generic control with a recursive search. However, I now need to cast it to an Umbaco Macro and I can't for the life of me find the namespace 'umbraco.presentation.templateControls.Macro'
I've included these directives:
using umbraco.cms.businesslogic.macro;
using umbraco.DataLayer;
using umbraco.BusinessLogic;
Casting using businesslogic.Macro gives a casting error - wrong type.
Help appreciated.
JC
HI,
OK fixed this. My development project was targetting 3.5, while my Umraco installtion was tagetting 4.0. So the umbaco dll I was using wasn't working correctly (wrong environment.)
It appears you can't run 4.0 in VS 2008, so I've reverted to a previous version of Umbraco and we're away.
JC
is working on a reply...