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.
Going to Gallery from Search results creates extra rows
-
- Forum Members
- Posts: 23
- Joined: Sun Feb 24, 2008 11:12 pm
Re: Going to Gallery from Search results creates extra rows
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.
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} — <a href="{$entry->url}">{$entry->urltxt}</a></li>
{/if}
Re: Going to Gallery from Search results creates extra rows
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
- Forum Members
- Posts: 23
- Joined: Sun Feb 24, 2008 11:12 pm
[SOLVED] Going to Gallery from Search results creates extra
Actually, it started working correctly when I turned on Pretty URLs. Now I feel stupid.