My Account preview not working
2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 12, 2011 (RSS)
By 4cdg - August 11, 2011
When I click on the My Account in the backdoor of cms, I have it setup so users can populate some info kind of like a home page for them, address phone fax cell website a couple of pics. That is all working fine. But the preview button that is there goes to page not found. It works in my other section when user creates a record he can click preview. I have the viewers set correctly. any ideas?
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:
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:
Hope this helps
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/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/