Skip to content

Commit

Permalink
[FEATURE] Add system categories as tags to indexed pages. That makes …
Browse files Browse the repository at this point in the history
…it possible to create filters for pages based on system categories.
  • Loading branch information
Christian Bülter committed Mar 29, 2016
1 parent b92739b commit 12d21db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ master
[!!!] In order to restrict the filter options in the backend to those on a certain page, please use the page TSconfig option tx_kesearch.filterStorage = 123 (formerly: kesearch.filterStorage = 123). The syntax has been adopted to the official guidelines.
[BUGFIX] Fix fetching the right page uid in class user_filterlist, follow up to https://github.com/teaminmedias-pluswerk/ke_search/pull/9.
[TASK] cleanup user_filterlist
[FEATURE] Add system categories as tags to indexed pages. That makes it possible to create filters for pages based on system categories.

Version 2.1.0, March 2016
[!!!] This version changes the database structure!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,12 @@ public function getPageContent($uid) {
// element indexer if you need that feature!
$pageAccessRestrictions = $this->getInheritedAccessRestrictions($uid);

// get Tags for current page
// add ke_search tags current page
$tags = $this->pageRecords[intval($uid)]['tags'];

// add system categories as tags
tx_kesearch_helper::makeSystemCategoryTags($tags, $uid, $table);

// Compile content for this page from individual content elements with
// respect to the language.
// While doing so, fetch also content from attached files and write
Expand Down

0 comments on commit 12d21db

Please sign in to comment.