Made DynamicNode and DynamicMedia share an intermediary base class (that inherits from DynamicObject) rather than both inheriting from DynamicObject directly

Want to share some functionality between them
This commit is contained in:
agrath@gmail.com
2011-05-21 14:55:10 -12:00
parent cd13f8de55
commit 40099d9d22
4 changed files with 17 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ using System.Xml.Linq;
namespace umbraco.MacroEngines
{
public class DynamicNode : DynamicObject
public class DynamicNode : DynamicBase
{
#region consts
// these are private readonlys as const can't be Guids
@@ -329,12 +329,12 @@ namespace umbraco.MacroEngines
List<string> list = new List<string>();
if (node != null)
{
//find the doctype node, so we can walk it's parent's tree- not the working.parent content tree
CMSNode working = ContentType.GetByAlias(node.NodeTypeAlias);
while (working != null)
{
if((working as ContentType) != null)
if ((working as ContentType) != null)
{
list.Add((working as ContentType).Alias);
}