Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

New posts on a search results page

Quote Reply
New posts on a search results page
Hi,

I start to create a search results page viewable only by the administors on which the posts appear with their full text (I use the template include_post_display.html in the loop).

Almost everything work fine. My only problem is that the new posts appear always as new and never change to «old posts» throw this page. Is there a way to call the view function and new post function on this search results page (<%GForum::Post::??%>?

Thank you.

François
Quote Reply
Re: [Franco] New posts on a search results page In reply to
Not easily - posts determine whether or not they are "new" using the forum information - but since the search results are not limited to a particular forum, that information is not available, thus causing the post to be marked "new". It might be best just to add a:

<%set ignore_new = 1%>

at the top of the search results template, then put:

<%unless ignore_new%>...<%endunless%>

tags around the new post indicator.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] New posts on a search results page In reply to
Ok, thank you very much Jason.

François