 | |  |
 |

stevec
User
Mar 8, 2003, 9:08 AM
Post #1 of 6
(1825 views)
Shortcut
|
|
Showing "NEW" on index page
|
Can't Post
|
|
I was fiddling with the search result template. I don't ever have enough listings to need searching but I noticed that it displays "NEW" next to some listings. What determines whether a listing is :NEW"? It looks like this code: <!-- templatecell : row_image_new --> has something to do with it. Where is the logic and what does it look for? Edit - Well, right after posting I found in the _search_query.html file the following: "MARK NEW LISTINGS AS "NEW" You can have new listings that have been created or updated in the last few days displayed in a "NEW" templatecell on the search results page by using "marknew" field: <input type="hidden" name="marknew" value="2"> In this example, any listings created or updated in the last 2 days will be shown as new." Can the same thing be done on the _publish_listing_index.html template? Thanks
(This post was edited by stevec on Mar 8, 2003, 9:15 AM)
|
|
|  |
 | |  |
 |

Benjamin
Staff

Mar 9, 2003, 12:31 PM
Post #3 of 6
(1799 views)
Shortcut
|
|
Re: [stevec] Showing "NEW" on index page
[In reply to]
|
Can't Post
|
|
Hi Steve, Yes, Lee is quite right - it won't be done automatically by the listings index page, since it's a static page. However, if you're keen on getting this, it would be possible to do it with some JavaScript. To give you an idea, what you'd have to do is create a new listings field for DATE, in the following format: yyyymmdd. Then, after filling this in (manually, I'm afraid) for each listing, you'd insert some code within each template cell in the _publish_listing_index.html file. This would compare that value with the current date, and, if it's within a few days, output "NEW" to the screen. Just an idea. :-) Ben interactivetools.com
|
|
|  |
 |

stevec
User
Mar 9, 2003, 6:42 PM
Post #4 of 6
(1783 views)
Shortcut
|
|
Re: [Benjamin] Showing "NEW" on index page
[In reply to]
|
Can't Post
|
|
Oh, I should have known the index page is static! We do the opposite in a manual way. We mark leased properties "Leased" or "Pending" which shows in red next to the index listing and on the listing page. I created a field called "status" which we leave blank, so it doesn't show up anywhere (at first). Then when a property is leased, or in the process of being leased, we edit the listing and type into that blank field "pending" or "leased". We do this because we don't want a renter to visit our website after reading an add, and then not find the property. This way they see that it is no longer available instead of calling the office and saying "I don't see 123 Elm Street which was advertised ..." Steve
|
|
|  |
 |

kalish
User
Mar 9, 2003, 8:30 PM
Post #5 of 6
(1780 views)
Shortcut
|
|
Re: [stevec] Showing "NEW" on index page
[In reply to]
|
Can't Post
|
|
one solution, for this, is to use dynamic generated index page instead a static, using the search.cgi to generate the html, in this way, you can use the "new listing" feature.
|
|
|  |
 |

Benjamin
Staff

Mar 10, 2003, 8:34 AM
Post #6 of 6
(1771 views)
Shortcut
|
|
Re: [kalish] Showing "NEW" on index page
[In reply to]
|
Can't Post
|
|
Good idea! I should've thought of that! :-) Ben interactivetools.com
|
|
|  |
|