Skip to content

Commit

Permalink
[FEATURE] Skip not reachable pages in suggest of fields in flexforms
Browse files Browse the repository at this point in the history
If a page needs to be selected, e.g. for detailPid, it makes no sense
to be able to select sysfolders, ...
Therefore a restriction to doktype is added
  • Loading branch information
georgringer committed Nov 3, 2024
1 parent e51faf3 commit 38f9bde
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Configuration/FlexForms/flexform_category_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.listPid>

Expand Down
15 changes: 15 additions & 0 deletions Configuration/FlexForms/flexform_news.xml
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.detailPid>

Expand All @@ -357,6 +362,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.listPid>

Expand All @@ -370,6 +380,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.backPid>

Expand Down
15 changes: 15 additions & 0 deletions Configuration/FlexForms/flexform_news_date_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.detailPid>

Expand All @@ -277,6 +282,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.listPid>

Expand All @@ -290,6 +300,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.backPid>

Expand Down
10 changes: 10 additions & 0 deletions Configuration/FlexForms/flexform_news_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.detailPid>

Expand All @@ -137,6 +142,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.backPid>

Expand Down
15 changes: 15 additions & 0 deletions Configuration/FlexForms/flexform_news_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.detailPid>

Expand All @@ -333,6 +338,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.listPid>

Expand All @@ -346,6 +356,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.backPid>

Expand Down
5 changes: 5 additions & 0 deletions Configuration/FlexForms/flexform_news_search_form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.listPid>

Expand Down
15 changes: 15 additions & 0 deletions Configuration/FlexForms/flexform_news_selected_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.detailPid>

Expand All @@ -116,6 +121,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.listPid>

Expand All @@ -129,6 +139,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.backPid>

Expand Down
10 changes: 10 additions & 0 deletions Configuration/FlexForms/flexform_tag_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.listPid>

Expand All @@ -147,6 +152,11 @@
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<suggestOptions>
<default>
<addWhere>AND pages.doktype NOT in (6,199,254)</addWhere>
</default>
</suggestOptions>
</config>
</settings.backPid>

Expand Down

0 comments on commit 38f9bde

Please sign in to comment.