function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Christian Dylan CarterChristian Dylan Carter 

<apex:detail> or similar, without updating recently viewed items?

Hey Folks,

I'm writing a few search pages that need to be very very admin configurable. In order to do that, I'm being a little crafty and using <apex:detail> in an <apex:repeat> of my results, each inside a collapsed pageblock. This is actually working GREAT. The admin is able to configrue the results displayed by recordtype and profile using the normal page layout builder. Everyone is happy.

But... using apex:detail marks a record as recently viewed! Which isn't a tragedy, but it fills up the sidebar, and people can't get to the records they are actually working with. Is there a way to use apex:detail but not call the subject recently viewed? Or, is there another good way to render the pagelayout for a record?
Andy BoettcherAndy Boettcher
Unfortunately no, there isn't a way to change that behavior with the apex:detail - unless you spin up your own "page layout" and not use it.  =(