[SOLVED] Searching for NEWS: resulting links are not correct

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
kipara
Posts: 26
Joined: Thu 16. Sep 2004, 20:48
Location: Bangkok, Thailand

[SOLVED] Searching for NEWS: resulting links are not correct

Post by kipara »

Hi,

I've spent over a week getting to know the new News CP. It ROCKS!

I read in various posts that pagination is not finished yet and this feature is still being worked on. My question is: has the search feature for news been properly implemented?

When you add the search CP you know have a sub section that asks ' search also: News'. It works fine, except that the links in the results are not correct.

Links to news items have this format:
index.php?page-in-the-site&newsdetail=20080918-28_Alias-of-news-item

The search results are in this format:
index.php?page-in-the-site&newsdetail=2008%2F09%2F28%2FAlias-of-news-item (or rather: 2008/09/28/Alias-of-news-item)

So clicking on the results doesn't take you to the news item. This in both versions r182 and r213.

Has anyone else seen this?

Thanks,

Michiel
Last edited by kipara on Wed 20. Aug 2008, 19:38, edited 1 time in total.
User avatar
Oliver Georgi
Site Admin
Posts: 9906
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Searching for NEWS: resulting links are not correct

Post by Oliver Georgi »

Check r255

Seems search used old news link format.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
kipara
Posts: 26
Joined: Thu 16. Sep 2004, 20:48
Location: Bangkok, Thailand

Re: Searching for NEWS: resulting links are not correct

Post by kipara »

You fixed that in 10 minutes??? AWESOME!!

I got the new file and it's better:

index.php?page-in-the-site&newsdetail=20080115-_Alias-of-news-item

but the ID of the file is missing. It should go between the date and the alias:

index.php?page-in-the-site&newsdetail=20080115-28_Alias-of-news-item

As it is now it still doesn't work. Thanks for the speedy fix!

Michiel
User avatar
Oliver Georgi
Site Admin
Posts: 9906
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Searching for NEWS: resulting links are not correct

Post by Oliver Georgi »

OK, check r256 - the ID was missing. Seems to work now.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
kipara
Posts: 26
Joined: Thu 16. Sep 2004, 20:48
Location: Bangkok, Thailand

Re: [SOLVED] Searching for NEWS: resulting links are not correct

Post by kipara »

Perfect!

Many thanks,

M
User avatar
Oliver Georgi
Site Admin
Posts: 9906
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: [SOLVED] Searching for NEWS: resulting links are not correct

Post by Oliver Georgi »

and next time :) see Google code and issues. Better to place such problems there ;-)
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
mshaker
Posts: 19
Joined: Fri 20. Jun 2008, 11:13

Re: [SOLVED] Searching for NEWS: resulting links are not correct

Post by mshaker »

I posted this same problem in a different thread, but this also seems like a good place. I installed r257, but the "page-in-site" part of the link is missing. Any suggestions?

Thanks
Post Reply