Going to Gallery from Search results creates extra rows

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
proboscidian
Forum Members
Forum Members
Posts: 23
Joined: Sun Feb 24, 2008 11:12 pm

Going to Gallery from Search results creates extra rows

Post by proboscidian »

I am having a problem with search results that include a gallery. When someone clicks on the search result link to the gallery it makes a duplicate row in the database for the gallery directory, but with the fields for title and album cover empty. Then, when someone visits the parent gallery the thumbnail and title for that subgallery don't show, of course. I tried upgrading the gallery to 1.6 but that didn't help. Any ideas?

I am using CMSMS 1.10.3, Search 1.7 and Gallery 1.6. PHP version is 5.3.8.
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Going to Gallery from Search results creates extra rows

Post by carasmo »

What I did, since I use the gallery all over the place is to not show any search results that link to a gallery result, just to the page that holds that gallery. Don't know how your site is set up, so I don't know if this will apply to your situation.

You can have additional content blocks for keywords and description that are captured on a content page and then when a user searches they go to the holding page, not the gallery result. Here's the relevant part of the search template.

Code: Select all

{if (empty($entry->module)) || ($entry->module != 'Gallery')} 
<li>{$entry->title} &mdash; <a href="{$entry->url}">{$entry->urltxt}</a></li>
{/if}
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Going to Gallery from Search results creates extra rows

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
proboscidian
Forum Members
Forum Members
Posts: 23
Joined: Sun Feb 24, 2008 11:12 pm

[SOLVED] Going to Gallery from Search results creates extra

Post by proboscidian »

Actually, it started working correctly when I turned on Pretty URLs. Now I feel stupid.
Post Reply

Return to “Modules/Add-Ons”