
Damon
Staff
/ Moderator

Nov 10, 2006, 11:46 AM
Post #2 of 2
(806 views)
Shortcut
|
|
Re: [graynet] Few Questions - Date, Search, Page Views
[In reply to]
|
Can't Post
|
|
Hi, 1) I want to post JUST the date beside the subject (ie: 11/10). How do I go about doing this? If I use the place holder $article.date$ it puts the entire date and time. You can control how the published date is output in two ways: 1. Set date format in the Admin > Regional Settings section 2. Using a placeholder modifier in your temlplates. To output 11/10 (month/day), this is what your date placeholder modifier would look like: $article.date:format(MM/dd)$ Add this to your template, re-publish and that's it. :) Take a look at the date placeholder docs for additional reference. 2) We use PHP pages. So when someone trys to access search.cgi, of course the PHP Includes will not show up. Is there a PHP version of the search engine or how can I get my template to show up? To have your PHP includes show up on the search engine page, in the Admin > General Settings section, set Dynamic SSI Parsing to Server Resolved and the Temporary File Extension to php. Save and your done. You don't need to re-publish to see the results. 3) How can I place a page counter inside my articles (ie: This article has been viewed XX times)? To add a page counter for each article, simply add the code to your article template and re-publish. Depending on the type page counter (JavasCript, PHP, CGI, etc) you may need to pass a value to it to identify the page. If you need to you can use $article.num$ to pass the article number to the page counter. I hope that helps. If you have any other questions, please let me know. --------------------------------------------------- Cheers Damon Edis interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
(This post was edited by Damon on Nov 10, 2006, 11:48 AM)
|