I'm using a custom item resolver to take a call to a wildcard item and use the URL to grab an item in a catalog of products (not Commerce). I've got the parser set up, but I've hit a conundrum.
The items in the catalog of products don't have presentation details, they are data only. The wildcard item has the presentation details I want to use. The problem is that once I set the Context.Item to the product item, it takes on all properties, including the lack of layout. I've tried taking the shared/final layout from the wildcard and programmatically assigning it to the product item, but it saves that to the actual item, which is not desired. (The products are used on multiple sites and might have different layouts/renderings per site.)
Is there any way to "disassociate" the product item after retrieval, so I could assign the layout from the wildcard without saving it to the actual item? Or is the better method to retrieve the data at the rendering level, parsing the URL to get the info needed to find the datasource, and then assigning the datasource dynamically?