Skip to content

Commit

Permalink
Add pidOfSearchPage for Ajax Widget
Browse files Browse the repository at this point in the history
  • Loading branch information
froemken committed Dec 16, 2020
1 parent f08ed6a commit 106e72a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Configuration/TypoScript/constants.typoscript
Expand Up @@ -16,6 +16,8 @@ plugin.tx_schooldirectory {
pidOfMaps2Plugin =
# cat=plugin.tx_schooldirectory//c; type=int+; label=PID of Detail page: Leave empty to show details on current page.
pidOfDetailPage =
# cat=plugin.tx_schooldirectory//d; type=int+; label=PID of Search page.
pidOfSearchPage =

pageBrowser {
# cat=plugin.tx_schooldirectory/basic/dims; type=int+; label=Items per page: How many items should be displayed on one page
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TypoScript/setup.typoscript
Expand Up @@ -21,7 +21,7 @@ plugin.tx_schooldirectory {
settings {
pidOfMaps2Plugin = {$plugin.tx_schooldirectory.settings.pidOfMaps2Plugin}
pidOfDetailPage = {$plugin.tx_schooldirectory.settings.pidOfDetailPage}

pidOfSearchPage = {$plugin.tx_schooldirectory.settings.pidOfSearchPage}
list {
image {
width = 50c
Expand Down
26 changes: 24 additions & 2 deletions Documentation/Configuration/Index.rst
Expand Up @@ -43,6 +43,17 @@ If you want, you can change the links in project listing to link to another page
By default the detail view uses current page.


.. _pidOfSearchPage:

pidOfSearchPage
---------------

Example: plugin.tx_schooldirectory.settings.pidOfSearchPage = 21

If you're using the DropDowns to filter school records in frontend you can define another page
shere to show the filtered school records. If empty we will show them on current page.


.. _pidOfMaps2Plugin:

pidOfMaps2Plugin
Expand All @@ -63,8 +74,19 @@ Default: 50c for width and height

Example: plugin.tx_schooldirectory.settings.list.image.width = 150c

Currently not implemented in Template, but if you want, you can use this
setting to show one or more images with a defined width and height.
Here you can configure width and height for images in list view.


.. _show:

show
----

Default: 240c for width and 180c for height

Example: plugin.tx_schooldirectory.settings.show.image.width = 300c

Here you can configure width and height for images in detail view.


.. _pageBrowser:
Expand Down

0 comments on commit 106e72a

Please sign in to comment.