YodasMyDad / Dialogue

Forum package for Umbraco v7.1 onwards
54 stars 31 forks source link

Fix for getting the root document type based on configuration #101

Open JohnBergman opened 7 years ago

JohnBergman commented 7 years ago

Here is a simple fix for the Application\ContextHelper.cs to get the right node based on the configuration changes you did.

    //var homeNode = helper.TypedContentAtXPath("//root//Dialog").FirstOrDefault();
    var homeNode = helper.TypedContentAtXPath("//root//"+ DialogConfiguration.Instance.DocTypeForumRoot).FirstOrDefault();    //TODO:  This needs to get the front page of the Forum

Hope it helps.