Hello,
I try to do a simple customization of display date and i intercet the code that write the date display in the result in search.php.
"if ($DisplayDate == 1 && $pageinfo[$ipage]["datetime"] > 0)
{
if (strlen($info_str) > 0)
$info_str .= " - ";
$info_str .= date("j M Y", $pageinfo[$ipage]["datetime"]);
}
"
Now i want that when the date is equal es. "11/11/1111" and "10/11/1111" etc... the result is a string that is "date of Working" or date is equal "12/11/111" the result string is "date of holiday" and the other date remains display normally the date of modify of the file (or, if is possible the date of creation of the file? ).
after that, is a problem for the search to continue to filter the results by date or relevance?! thanks
Bye
I try to do a simple customization of display date and i intercet the code that write the date display in the result in search.php.
"if ($DisplayDate == 1 && $pageinfo[$ipage]["datetime"] > 0)
{
if (strlen($info_str) > 0)
$info_str .= " - ";
$info_str .= date("j M Y", $pageinfo[$ipage]["datetime"]);
}
"
Now i want that when the date is equal es. "11/11/1111" and "10/11/1111" etc... the result is a string that is "date of Working" or date is equal "12/11/111" the result string is "date of holiday" and the other date remains display normally the date of modify of the file (or, if is possible the date of creation of the file? ).
after that, is a problem for the search to continue to filter the results by date or relevance?! thanks
Bye
Comment