Display of search results
Permalink
I have a problem with the display of my search results. They come out like this:
Wohnhaus Kalamata
hlendachstuhl Bierbrauerei Aqu
http://www.denkaufbau.de/index.php/about/altbau-in-kalamata-grieche...
I would like to delete or hide the line withhttp://www.denkaufbau.de/inde ...
Is there a way to do that?? Just cant find it! Thanks!
Wohnhaus Kalamata
hlendachstuhl Bierbrauerei Aqu
http://www.denkaufbau.de/index.php/about/altbau-in-kalamata-grieche...
I would like to delete or hide the line withhttp://www.denkaufbau.de/inde ...
Is there a way to do that?? Just cant find it! Thanks!
Check the page properties of the pages you want to exclude and select "remove from search index" custom attribute. Is that what you're looking for? That or "remove from sitemap.xml".
Thanks for your answer! But thats not what I wanted. I dont want to exclude any pages from searching, I want all the page to be searched.
It is just the way it is shown in the search results, I dont want the direct link of each result to be shown, as it shows all people the structure of my site plus it looks messy.
Maybe there should be some changes in the code of the theme I am using (dark choclate) but I have no idea.
Does anyone else know?
It is just the way it is shown in the search results, I dont want the direct link of each result to be shown, as it shows all people the structure of my site plus it looks messy.
Maybe there should be some changes in the code of the theme I am using (dark choclate) but I have no idea.
Does anyone else know?
To remove the link from the search results you can make an override of the core search block by copying view.php from 'siteroot/concrete/blocks/search/' and put it in 'siteroot/blocks/search/'. Once you have copied the file you should remove or comment out line 37 in your newly created file:
By making an override you can easily revert back to the original by deleting your file, and also, you will not loose your changes upon an update.
You can read more about overrides here: http://www.concrete5.org/documentation/how-tos/developers/change-th...
By making an override you can easily revert back to the original by deleting your file, and also, you will not loose your changes upon an update.
You can read more about overrides here: http://www.concrete5.org/documentation/how-tos/developers/change-th...
Thanks that worked well!! Exactly what I wanted to know :)
note: you need to create a new search folder in blocks cause there is none there.
note: you need to create a new search folder in blocks cause there is none there.