From b9af475ecb396dc823ebdbfdb3252dbf980285a1 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Sat, 26 Oct 2019 15:39:10 +0200 Subject: [PATCH] SEF urls for download search results --- e107_plugins/download/e_search.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/e107_plugins/download/e_search.php b/e107_plugins/download/e_search.php index b7326504b..e0dabfd92 100644 --- a/e107_plugins/download/e_search.php +++ b/e107_plugins/download/e_search.php @@ -51,14 +51,15 @@ class download_search extends e_search // include plugin-folder in the name. 'd.download_id', 'd.download_sef', 'd.download_category', - 'c.download_category_id', 'd.download_name', 'd.download_description', 'd.download_author', 'd.download_author_website', 'd.download_datestamp', 'd.download_class', - 'c.download_category_name', + 'c.download_category_id', + 'c.download_category_name', + 'c.download_category_sef', 'c.download_category_class' ), @@ -88,7 +89,9 @@ class download_search extends e_search // include plugin-folder in the name. { $tp = e107::getParser(); - //TODO SEF URLs for list below. + $download_index_url = e107::url('download', 'index'); + $download_category_url = e107::url('download', 'category', $row); + //TODO Remove html from pre_summary and use additional vars instead. $res = array(); @@ -98,14 +101,11 @@ class download_search extends e_search // include plugin-folder in the name. $res['link'] = e107::url('download', 'item', $row); $res['pre_title'] = $tp->toHTML($row['download_category_name'],false,'TITLE_PLAIN')." | "; $res['title'] = $row['download_name']; - $res['pre_summary'] = "
".LAN_197." -> ".$row['download_category_name']."
"; + $res['pre_summary'] = "
".LAN_197." -> ".$row['download_category_name']."
"; $res['summary'] = $row['download_description']; $res['detail'] = LAN_SEARCH_15." ".$row['download_author']." | ".LAN_SEARCH_66.": ".$datestamp; - - return $res; - }