Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Smart Search on Custom Tables View modes: 
User avatar
Member
Member
Skip - 11/26/2013 10:29:39 AM
   
Smart Search on Custom Tables
I am hoping that someone has done this already so that I do not have to re-invent the wheel. I am wanting to include Custom Table records in my general search results on the site. I have created the index and I am getting the records as part of the results, but the link for the entry is incorrect. Rather than pointing to a page that I have built to display custom table records, it points back to the search results page. Support has told me that I need to build a custom method for the transformation. I can build the method, but I am not sure how I pull information from the custom table properties. (I have defined in the properties for the custom table which page to use to view the record.)

Has anyone else run into this?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 11/27/2013 7:11:50 AM
   
RE:Smart Search on Custom Tables
The reason this happens is because custom table records don't store any document or navigation properties.

In your smart search transoformation you can look at the class name (Eval("id") == "custom.customtablename") and build your URL. What I've done is added 2 <asp:HyperLink> controls and set the visibility and navigate url properties based on the "id" returned.

You could create a method for this somewhere else but if its a simple one or two off item, I guess its you're choice.