1 of 2
1
How do I change where search results point?
Posted: 22 May 2008 10:54 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008

Hi,

I’m using a simple search form like this:

exp:search:simple_form search_in="everywhere"}
<input type="text" name="keywords" class="textfield" maxlength="80" value="Enter Keywords" onfocus="this.value=''" onblur="if(this.value=='')this.value='Enter Keywords';" />
<
input type="image" src="{site_url}images/icon_search.gif" class="search_button" title="start searching" id="searchsubmit" />
            
{/exp:search:simple_form}

at the moment my search results are displayed in the ‘stock’ search results page. I would like to create a custom page using my current website template.

I’ve checked the documentation here:

How do I change where search results point?

but I can’t understand the instructions - for example there isn’t a

  “Search Results URL” setting under Admin > Weblog Management.

and the documentation link goes to the weblog management entry.

Can I still change where the search results point to via the admin panel, or was this in a previous version?

Thanks.

Profile
 
 
Posted: 22 May 2008 10:59 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15420
Joined  05-15-2004

You open your CP -> Admin -> Weblog Administration -> Weblog Management -> Edit Preferences -> Path Settings -> Search Results URL. Still working fine.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 22 May 2008 11:58 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008
Ingmar Greil - 22 May 2008 10:59 AM

You open your CP -> Admin -> Weblog Administration -> Weblog Management -> Edit Preferences -> Path Settings -> Search Results URL. Still working fine.

Thanks - could you update the documentation with the correct information?

I’ve tried changing the address in the Search Results URL so that clicking the search results link to a blog goes to the actual page that the content is displayed on but it’s not working.

I have a webblog called ‘home’ that is displayed on the home page. In the path settings ‘Search Results URL’ box I’ve typed the url to the home page, e.g: http://www.mywebsite.co.uk/index.php/mysite/index/

I have a weblog entry titled ‘welcome’ which has been posted in the ‘home’ weblog, and when clicked on in the search results I would like visitors to be taken to the address above - but instead of taking me to that page, when I click the link in the search results page it goes to http://www.mywebsite.co.uk/index.php/mysite/welcome/

Can you tell me what I’m doing wrong?

Is there also a way to create a blank template that will contain the entry from a search - I might use this option instead of trying to direct users to the page as I’ve explained above. I guess this is the traditional blog way of doing things.

Thanks.

Profile
 
 
Posted: 22 May 2008 12:17 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008

This is just driving me bonkers. I’ve spent all day on this now.

Profile
 
 
Posted: 22 May 2008 01:33 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15420
Joined  05-15-2004
mork - 22 May 2008 11:58 AM
Ingmar Greil - 22 May 2008 10:59 AM

You open your CP -> Admin -> Weblog Administration -> Weblog Management -> Edit Preferences -> Path Settings -> Search Results URL. Still working fine.

Thanks - could you update the documentation with the correct information?

It’s been duly noted, but we haven’t had any complaints yet.

Can you tell me what I’m doing wrong?

Do yo have a link to your site? Together with a few suggested terms to search for?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 22 May 2008 01:41 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008
Ingmar Greil - 22 May 2008 01:33 PM

mork - 22 May 2008 11:58 AM
Ingmar Greil - 22 May 2008 10:59 AM

You open your CP -> Admin -> Weblog Administration -> Weblog Management -> Edit Preferences -> Path Settings -> Search Results URL. Still working fine.

Thanks - could you update the documentation with the correct information?

It’s been duly noted, but we haven’t had any complaints yet.

The information is wrong - is it company policy to have a certain number of complaints before you update the text? The entry is incorrect, I’ve just told you about it…isn’t that enough?  rolleyes

Ingmar Greil - 22 May 2008 01:33 PM

Do yo have a link to your site? Together with a few suggested terms to search for? 

Isn’t the information I’ve provided enough? I can’t see that giving a liuk to the site would make any difference. I’ve used the simple search code, as I’ve pasted above, set up a weblog and pasted in an entry. All the details are there, I haven’t created any custom coding.

If you could help me, rather than arguing with me please, and update the incorrect entry in your documentation then I would be grateful, and it might also go some way to restoring my faith in the product that I have just purchased as I’m starting to think I’ve made a bad decision here.

Profile
 
 
Posted: 22 May 2008 02:20 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

Hi, mork - there really isn’t any need to be abrasive here.  We update the documentation the moment we know there is a real problem with hit.

On what documentation page, exactly, did you feel the information was incorrect?  For instance, on this page it is described correctly:

Search Results URL
The full URL where you would like search results from this weblog to be pointed. The URL should include the Template Group and Template. For example, if you wish that links off the search results page point to your “comments” Template you might use: http://www.example.com/index.php/weblog/comments/

When we ask for a URL, we’re not just asking out of general interest, but because seeing the problem in action is an important part of troubleshooting what may not be working as expected.  This is not something we’re doing to frustrate you, but it is something that we need.  I do also need to ask that, for you to get the speedy and efficient technical support that you deserve, you cooperate and work with us on troubleshooting the problem.

Now, my understanding briefly is that you’ve placed:

http://www.mywebsite.co.uk/index.php/mysite/index/

In the search results URL.  But when you click on a result, you get

http://www.mywebsite.co.uk/index.php/mysite/url_title

where URL Title is that of the entry you chose to go to.  Is that correct, or have I misunderstood the explanation? Again, here, a link to the site so we can search and see what happens *exactly* would be invaluable.  With that information, this might very well already be resolved.

Thank you for working with us on this.

 Signature 
Profile
MSG
 
 
Posted: 22 May 2008 03:33 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008
Lisa Wess - 22 May 2008 02:20 PM

Hi, mork - there really isn’t any need to be abrasive here.  We update the documentation the moment we know there is a real problem with hit.

Hi Lisa,

Thanks for the reply - I’m not being abrasive - it’s very difficult finding out information as it is, and if the user documentation is incorrect then this makes things even worse. I’ve tried to pass this information on but it’s been brushed aside.

Lisa Wess - 22 May 2008 02:20 PM

On what documentation page, exactly, did you feel the information was incorrect?  For instance, on this page it is described correctly:

The information is wrong on the page I linked to in my opening post:

How do I change where search results point?

Search result links are controlled by the “Search Results URL” setting under Admin > Weblog Administration > Weblog Management. 

Following this link does not reveal the ‘Search Results URL’ setting link. You have to select a weblog and click the ‘Edit Preferences’ link first and then click ‘path settings’ before the ‘Search Results URL’ is visible.

The information is incomplete, and being told that ‘we haven’t received any complaints’ is unhelpful and frankly, unprofessional.

I’ve wasted time on this issue, and it seems like I’ve wasted time reporting the error.

Profile
 
 
Posted: 22 May 2008 04:35 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

Hi, mork - The breadcrumb is correct, but is only a partial breadcrumb.  I will update that to reflect the entire breadcrumb to avoid confusion for future viewers.  Thank you.

Now, as to your original issue - is that resolved, or did you need further assistance?

 Signature 
Profile
MSG
 
 
Posted: 23 May 2008 04:28 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008
Lisa Wess - 22 May 2008 02:20 PM

Now, my understanding briefly is that you’ve placed:

http://www.mywebsite.co.uk/index.php/mysite/index/

In the search results URL.  But when you click on a result, you get

http://www.mywebsite.co.uk/index.php/mysite/url_title

where URL Title is that of the entry you chose to go to.  Is that correct, or have I misunderstood the explanation?

Hi Lisa,

Thanks for the reply.

Yes that’s correct. I want the visitor to be taken to the page that I’ve specified in the Search Results URL preferences box. This isn’t happening, and instead of going to http://www.mywebsite.co.uk/index.php/mysite/index/ they get redirected to http://www.mywebsite.co.uk/index.php/mysite/url_title

I’m using the search results and simple search form pages that come with EE, and haven’t made any modifications to these files.

Can you tell me why they are still being redirected to the blog name and not the page I’ve specified? Does the search results page need amending?

Thanks again grin

Profile
 
 
Posted: 23 May 2008 09:06 AM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008

I’m still having this problem if anyone is able to help I’d appreciate it.

I’ve now created a custom search results page (based on Boyink’s tutorial here http://www.boyink.com/splaat/comments/building-an-expressionengine-site-chapter-17/) but the results are still adding the weblog name onto the end, instead of going to the page that I specified in the weblog admin for each weblog.

This is driving me nuts…day two and it’s still not working.

Profile
 
 
Posted: 23 May 2008 09:24 AM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12395
Joined  04-29-2002

Mork, let’s step back a bit.

Do you have a link we can see?

Or can you do the following:

Create a Superadmin account and send that information to:

sue.crocker@ellislab.com

with a link to this thread.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 23 May 2008 09:41 AM   [ Ignore ]   [ # 12 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008
Sue Crocker - 23 May 2008 09:24 AM

Mork, let’s step back a bit.

Do you have a link we can see?

Or can you do the following:

Create a Superadmin account and send that information to:

sue.crocker@ellislab.com

with a link to this thread.

Hi Sue,

Thanks for replying. I’d rather not give out a link to the site, but it’s pretty basic so I can’t see that it would help anyway. I can supply you with any information that you need to know if the information below isn’t sufficient.

I have, for example, a page called ‘shop’, and the url is http://www.mysite.co.uk/index.php/templatename/shop/

I have created a weblog called ‘products’, I’ve created a link to this on the shop page, and this weblog can be viewd when visiting the url above which is http://www.mysite.co.uk/index.php/templatename/shop/

In the ‘products’ weblog I have amended the Search Results URL to http://www.mysite.co.uk/index.php/templatename/shop/

I have used a custom search page, and also the standard search page, and when using both of these the results don’t link to the URL’s that I have specified in the weblog admin.

So when a result comes back for an entry in the products weblog, instead of linking to http://www.mysite.co.uk/index.php/templatename/shop/ it adds the entry onto this URL, so it goes to this location instead:

http://www.mysite.co.uk/index.php/templatename/shop/product-blog-entry

Basically I need to stop it adding the blog entry onto the end, and just go to the page that contains all of the entries for that weblog.

Hope you can help, this is driving me quietly crackers.

Profile
 
 
Posted: 23 May 2008 09:48 AM   [ Ignore ]   [ # 13 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008

If it’s not possible to get the above scenario to work, then I would like the blog entries displayed on a default page (single page?), as on the Boylink tutorial. This doesn’t seem to be working for me either though… confused

Profile
 
 
Posted: 23 May 2008 09:48 AM   [ Ignore ]   [ # 14 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12395
Joined  04-29-2002

mork, I think you are just not understanding how search results work.

You basically need to have a single entry template (in your case, templatename/shop, which will take the url_title as the third segment.

Once the single entry template “sees” the third segment, it knows which entry to show.

Does that help at all?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 23 May 2008 10:01 AM   [ Ignore ]   [ # 15 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008
Sue Crocker - 23 May 2008 09:48 AM

mork, I think you are just not understanding how search results work.

You basically need to have a single entry template (in your case, templatename/shop, which will take the url_title as the third segment.

Once the single entry template “sees” the third segment, it knows which entry to show.

Does that help at all?

Thanks for the reply sue - I understand the concept but don’t know the details - can you give me a link to some documentation for creating this?

Thanks.

Profile
 
 
Posted: 23 May 2008 10:09 AM   [ Ignore ]   [ # 16 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12395
Joined  04-29-2002

I’ll see what I can find. smile

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 23 May 2008 10:22 AM   [ Ignore ]   [ # 17 ]  
Grad Student
Rank
Total Posts:  79
Joined  04-28-2008

Thank you smile

Profile
 
 
Posted: 23 May 2008 10:49 AM   [ Ignore ]   [ # 18 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

There isn’t a specific documentation that discusses the search results this way.  However, I think what will help is if you read The Importance of Semantics.  This will explain how ExpressionEngine interacts with the URL in order to present the correct data on your site.  It does this with the search results, which is why your last segment has the URL title, not the index. 

As a note here, if you used a template other than index, then it would be index.php/mysite/template_name/url_title

ExpressionEngine simply drops the index template because it is not needed - it is assumed in this case.

Just one other comment - you posted at 3:30am thne 8:48am.  I do need to ask that you give us a little longer than just the first few hours of early morning, before you bump a post or assume that a non-answer means impossible.  I can assure you that if it’s not possible, we will tell you that at least, and try to supply some way to reach your goals.

Thanks, mork.  We’ll all get this worked out together. =)

 Signature 
Profile
MSG
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64983 Total Logged-in Users: 36
Total Topics: 82024 Total Anonymous Users: 16
Total Replies: 440860 Total Guests: 213
Total Posts: 522884    
Members ( View Memberlist )
Newest Members:  hotglassladyariepChris Bandytony leodennisbaldwinhazlett_davidkpspokeli9htcluizmbent