Question

Photo of Derek Dalton

0

Adding Sub Page Menu Items

Is there a way on the person's page I can add more items to the Sub Page Menu?

I have tried through CMS Configuration - Page Map - Support Pages - Person Pages. I have them added to the Menu on the Person's Page. Though I recieve an error when I click on them.

Version - Rock Version: Rock McKinley 0.9 (beta)

The Error - 

HttpUnhandledException in System.Web

Message
Exception of type 'System.Web.HttpUnhandledException' was thrown.

Stack Trace

   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

- ArgumentNullException in System.Core

Message
Value cannot be null. Parameter name: source

Stack Trace

   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at RockWeb.Blocks.Crm.PersonDetail.Bio.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  • Photo of Derek Dalton

    0

    I can't get to the page properties to set the conext parameter. Anytime I click on the page in the Page Map, I get the error. I have the pages set to Person Detail, too. I created them by going to Person Pages and creating Child Pages.

    • David Turner

      Ah, good point. The problem is that there's a bug in one of the person detail blocks that causes an exception when the person id can't be determined. That bug is fixed in the next release, but that of course doesn't help you now.


      Try this...


      From the main person profile page (first tab on person profile), edit the blocks and then select the move option on the 'Bio' block (this is the block with person's pic and contact info). When the move dialog appears, change it's parent from 'All pages using the PersonDetail Layout' to 'Current Page'. Save changes. Then click your new page. You should no longer get the exception. Chage that page's properties as mentioned above and save changes. Then go back to the Person Profile page and change the bio block's parent back.

  • Photo of David Turner

    0

    You probably need to set the context parameter and create a route for the page.  Also make sure your page is using the "Person Detail" layout...

    PersonPageSettings.png

     

  • Photo of Derek Dalton

    0

    Awesome, that worked. Thank you for fixing the bug in the next update, too.