Search result links

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
3/28/2012 11:06:35 AM
Gravatar
Total Posts 49

Search result links

I'm trying to figure out what causes many search results to look like the following...

About the Company > About the Company

Instead of just  About the Company.

On one of my latest sites, every search result link has duplicate names like that.

Thanks for any insight.

Tim

3/29/2012 7:10:46 AM
Gravatar
Total Posts 18439

Re: Search result links

Hi Tim,

Its because you changed the value of this setting to true instead of leaving it at the default false:

<add key="ShowModuleTitleInSearchResultLink" value="false"/>

So you're getting

Page Name > Module Title

and they happen to be the same.

Hope that helps,

Joe

3/29/2012 8:34:42 AM
Gravatar
Total Posts 49

Re: Search result links

But here's the weird thing, that key is still set to false in the web.config. I never touched it.

I added it to the user.config (and touched the web.config), just to see if it would see it there, but I still get the same results.

3/29/2012 8:42:25 AM
Gravatar
Total Posts 49

Re: Search result links

Looking at another on of my mojo sites, I get mixed results. Sometimes it shows just the page name, other time page name > feature name. And, sometimes both. Here is an example of a search result:

Ordinances > Ordinances

Ordinance 1 Regulating the visibility of drive-in theater motion picture screens to operators of motor vehicles upon streets and highways Ordinance 2.Providing for the development and operation of manufactured home parks Ordinance 3.Subdivision regulations Ordinance 4. Provide for the control

Ordinances

Ordinance 1 Regulating the visibility of drive-in theater motion picture screens to operators of motor vehicles upon streets and highways Ordinance 2.Providing for the development and operation of manufactured home parks Ordinance 3.Subdivision regulations Ordinance 4. Provide for the control

3/29/2012 8:48:17 AM
Gravatar
Total Posts 18439

Re: Search result links

It varies by feature, for example blog posts are going to have Page Name > Blog Post title

but for Html content feature it is only based on the setting I told you

3/29/2012 9:42:12 AM
Gravatar
Total Posts 49

Re: Search result links

Ok, I think this is being caused by something we did.

We extended Mojo with a function that automatically creates an HTML Content feature when you create a new page, and the feature is titled with the page name. I have a feeling we are sticking that name in a field where we shouldn't be.

Thanks for your help, Joe.

Tim

3/29/2012 9:58:07 AM
Gravatar
Total Posts 18439

Re: Search result links

There is a Title field in the mp_HtmlContent table that is not used in the ui and the field is empty when content is created via the ui. If you are populating it that would cause the problem and updating it to null or empty string for all rows would solve it.

Hope that helps,

Joe

3/29/2012 12:17:23 PM
Gravatar
Total Posts 49

Re: Search result links

That sounds like exactly the issue.

So, where is the "Feature Instance Title" stored?

3/29/2012 12:21:52 PM
Gravatar
Total Posts 49

Re: Search result links

Is it ModuleTitle in mp_Modules?

3/29/2012 12:25:46 PM
Gravatar
Total Posts 18439

Re: Search result links

yes

3/29/2012 12:33:34 PM
Gravatar
Total Posts 49

Re: Search result links

Thanks, Joe!

You must sign in to post in the forums. This thread is closed to new posts.