Skip to content

Commit

Permalink
[FEATURE] Add support for site sets, closes #278
Browse files Browse the repository at this point in the history
Example taken from EXT:news, thanks to
Lina Wolf
georgringer/news@b4075db
  • Loading branch information
christianbltr committed Jan 24, 2025
1 parent b102965 commit e762364
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ChangeLog

Upcoming version
[FEATURE] Add support for site sets. https://github.com/tpwd/ke_search/issues/278
[BUGFIX] Avoid PHP warning when saving category. Thanks to Simon Praetorius. https://github.com/tpwd/ke_search/issues/276
[DOCS] Add documentation about indexing content elements made with EXT:content_blocks. https://github.com/tpwd/ke_search/issues/254

Expand Down
2 changes: 2 additions & 0 deletions Configuration/Sets/KeSearch/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: tpwd/ke_search
label: 'Faceted Search (ke_search)'
1 change: 1 addition & 0 deletions Configuration/Sets/KeSearch/contants.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'EXT:ke_search/Configuration/TypoScript/constants.typoscript'

This comment has been minimized.

Copy link
@nebrot

nebrot Jan 24, 2025

There is a typo in filename (not line 1), it should be constants.typoscript instead of contants.typoscript.

This comment has been minimized.

Copy link
@christianbltr

christianbltr Jan 31, 2025

Author Member

Thank you, good catch. This has been fixed in master and will be in the next version.

1 change: 1 addition & 0 deletions Configuration/Sets/KeSearch/setup.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'EXT:ke_search/Configuration/TypoScript/setup.typoscript'
34 changes: 30 additions & 4 deletions Documentation/QuickStart/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,36 @@ You can find the current version (and older ones) at

https://extensions.typo3.org/extension/ke_search

Include static template
=======================
Include TypoScript
==================

In your main template include the "static template" of the extension ke_search.
.. _configuration-site-set:
Site Sets
---------
.. versionadded:: TYPO3 v13.1 / ke_search v6.3.0
If you are working with TYPO3 v12.4, use :ref:`configuration-typoscript-record`.

The extension ships some TypoScript code which can be included in the site
configuration via :ref:`Site sets <t3coreapi/13:site-sets>`:

#. Got to backend module :guilabel:`Site Management > Sites`.
#. Edit the configuration of your site.
#. On the first tab go to :guilabel:`Sets for this Site`.
#. Include the set :guilabel:`Faceted Search (ke_search)`.

.. _configuration-typoscript-record:

TypoScript sets (the traditional way)
-------------------------------------

If you are not using :ref:`configuration-site-set` you can
add the TypoScript via the TypoScript module (formerly known as "Include
static template"):

#. Got to backend module :guilabel:`Site Management > TypoScript`.
#. Select :guilabel:`Edit TypoScript record` --> :guilabel:`Edit the whole TypoScript record`.
#. On the first tab go to :guilabel:`Include TypoScript sets`.
#. Include the set :guilabel:`Faceted Search (ke_search)`.

Create pages
============
Expand Down Expand Up @@ -117,4 +143,4 @@ Open the backend module :guilabel:`Web` > :guilabel:`Faceted Search` and start t

You're done!

Open the `Search` page in the frontend and start finding ...
Open the `Search` page in the frontend and start finding ...

0 comments on commit e762364

Please sign in to comment.