My Account preview not working

2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 12, 2011   (RSS)

Re: [4cdg] My Account preview not working

By Jason - August 12, 2011

Hi,

This appears to be a bug in the system that we are currently looking into and should have a fix for in the next release.

If you need a work around, you can try this code in your preview file before your getRecords() call:

if (@$_REQUEST['preview:menu'] == "_myaccount") {
$_REQUEST['preview:menu'] = "accounts";
}


However, since "My Account" normally only shows a subset of the fields stored in "User Accounts" you may get a number of PHP warnings. You can suppress these warnings in your getRecords call by adding @ in front of the function name like this:


list($records,$metaData) = @getRecords(array(

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/