gradient1 search template - removing result pages

Questions and answers about ShopSite Custom Templates

gradient1 search template - removing result pages

Postby psldesigns » Thu Feb 04, 2010 4:59 pm

Is there a way to remove the result pages from under the products: here is the site: http://65.18.174.106/prints_charming.htm do a search for flowers. I have copied and created an editable version of the template, commenting out the things i don't want to see, but can't seem to find how to control the "result pages". Thanks.
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan

Postby Jim » Thu Feb 04, 2010 5:13 pm

Is it just the text "Result Pages" that you want to eliminate or the links to the pages too?
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby psldesigns » Fri Feb 05, 2010 6:33 am

both the text AND the links. :o) Thanks.
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan

Postby Jim » Fri Feb 05, 2010 9:45 am

You will need to make a couple of changes.

First create a page template that just has
Code: Select all
[--DEFINE LINK_TO_PAGE--]
# don't display a link
[--END_DEFINE LINK_TO_PAGE--]


Next edit make a copy of the gradient1-search.sst template by using the Copy ShopSite template button on the Merchandising > Custom Templates > Advanced section.
You can give it what ever name you want.
Edit that template and find the tag
Code: Select all
 [--Store.SearchResultPage --]

at the very beginning of the line that it is on put a # which will comment out the line.

Now under Preferences > Search Settings > Search layout change the Search Template: to be the one you created by copying the gradient search template.

and change the Link Template Override: template to be the page template you created with the blank define link_to_page secton and check the box to use that template.

Now when you search you will not see the text or the page links.

NOTE: if you have products that have the search destination set to "MoreInfo" those links will still appear and there is no way to remove them. So make sure the search destination of products is set to "Store" for all products.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby psldesigns » Fri Feb 05, 2010 10:46 am

Exactly what i needed, thanks so much for the help!
psldesigns
 
Posts: 116
Joined: Wed Aug 16, 2006 7:06 pm
Location: Michigan


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 4 guests