Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Search results correct, but link doesn't display story
Sallyc
Posted on 13 Apr 2011, 19:44:24

Access: Member
Total Posts: 61
Joined: 2011-02-25

I have my news page set up so that it also displays a Search bar by first having:

<div><?php
$static = 'true'; #this is the important part
$search = true;
include 'news/index.php';
?></div>

When I put in a search criteria (e.g., UFO) the results that are shown are correct, but the problem is that if I click on one the main news page is re-displayed, not the article.

The URL shown is not a friendly URL, but otherwise correct (e.g., http://www.spyglasshill.com/blog.php?id=3)as if it were going to display the correct article. But it's the main news page that is shown.

Any help would be appreciated. Thank you.
#3432
Sallyc
Posted on 14 Apr 2011, 20:08:29

Access: Member
Total Posts: 61
Joined: 2011-02-25

I figured it out, in case anyone else has this.

The problem is that I was using Friendly URL's. You need to go into the Admin>Options>Templates and select your template. Then got down to Search Results and change

<a href="?id={id}">{title}</a>

to

<a href="http://sitename.com/news/{id}-0-{friendlytitle}">{title}</a>

Not sure why, but you do need your sitename in the path, as well as the other code.
#3433
Network-13.com © 2013