Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-03-25 15:39:42
- beechy
- Member
- Registered: 2006-03-02
- Posts: 92
search results with static articles
I have setup the search so that it also includes static articles using txp:article searchsticky=1 /
The search returns the correct results but when I click on a link to go to the article found in the search results I get the static articles displaying twice.
The first version is formatted as non static articles are and the second is formatted correctly.
Is there a way of getting the search results to display the url as c=Portfolio or s=Portfolio instead of id=25 so that my static articles will display correctly when vistited from the search results.
Offline
#2 2006-03-25 18:05:44
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: search results with static articles
The only way I can think about is redirect those urls in .htaccess.
Redirect /index.php?id=25 http://yoursite.com/index.php?c=Portfolio
Last edited by els (2006-03-25 18:08:21)
Offline
#3 2006-03-25 23:41:37
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: search results with static articles
The search returns the correct results but when I click on a link to go to the article found in the search results I get the static articles displaying twice.
This is probably because you have two <txp:article />
tags on the page. Check the tag trace for details, and use <txp:if_individual_article>
to hide one of them on individual article pages.
Alex
Offline
Pages: 1