Skip to content

Commit

Permalink
Merge pull request #95 from jweiland-net/activateSolrConfiguration605
Browse files Browse the repository at this point in the history
Activate solr configuration605
  • Loading branch information
sfroemkenjw committed Apr 26, 2024
2 parents 78f3915 + 29e1902 commit 2ef6e6f
Show file tree
Hide file tree
Showing 11 changed files with 210 additions and 198 deletions.
10 changes: 2 additions & 8 deletions Configuration/TypoScript/Solr/constants.txt
@@ -1,8 +1,2 @@
plugin.tx_servicebw2.solr {
# cat=plugin.tx_tx_servicebw2//a; type=int+; label=Page uid of organisationsEinheiten detail page
organisationsEinheiten.detailPage =
# cat=plugin.tx_tx_servicebw2//b; type=int+; label=Page uid of lebenslagen detail page
lebenslagen.detailPage =
# cat=plugin.tx_tx_servicebw2//c; type=int+; label=Page uid of leistungen detail page
leistungen.detailPage =
}
# Important: This file is deprecated and will removed in future
@import 'EXT:service_bw2/Configuration/TypoScript/Solr/constants.typoscript'
8 changes: 8 additions & 0 deletions Configuration/TypoScript/Solr/constants.typoscript
@@ -0,0 +1,8 @@
plugin.tx_servicebw2.solr {
# cat=plugin.tx_tx_servicebw2//a; type=int+; label=Page uid of organisationsEinheiten detail page
organisationsEinheiten.detailPage =
# cat=plugin.tx_tx_servicebw2//b; type=int+; label=Page uid of lebenslagen detail page
lebenslagen.detailPage =
# cat=plugin.tx_tx_servicebw2//c; type=int+; label=Page uid of leistungen detail page
leistungen.detailPage =
}
69 changes: 2 additions & 67 deletions Configuration/TypoScript/Solr/setup.txt
@@ -1,67 +1,2 @@
plugin.tx_solr.index.queue {
tx_servicebw2_organisationsEinheiten {
indexer {
detailPage = {$plugin.tx_servicebw2.solr.organisationsEinheiten.detailPage}
}

fields {
title = name
content = processed_textbloecke

organisationseinheit_textM = processed_organisationseinheit

url = TEXT
url {
typolink.parameter = {$plugin.tx_servicebw2.solr.organisationsEinheiten.detailPage}
typolink.additionalParams = &tx_servicebw2_servicebw[id]={field:uid}&tx_servicebw2_servicebw[action]=show&tx_servicebw2_servicebw[controller]=Organisationseinheiten
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
}
}

tx_servicebw2_lebenslagen {
indexer {
detailPage = {$plugin.tx_servicebw2.solr.lebenslagen.detailPage}
}

fields {
title = name
content = processed_textbloecke

url = TEXT
url {
typolink.parameter = {$plugin.tx_servicebw2.solr.lebenslagen.detailPage}
typolink.additionalParams = &tx_servicebw2_servicebw[id]={field:uid}&tx_servicebw2_servicebw[action]=show&tx_servicebw2_servicebw[controller]=Lebenslagen
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
}
}

tx_servicebw2_leistungen {
indexer {
detailPage = {$plugin.tx_servicebw2.solr.leistungen.detailPage}
}

fields {
title = name
content = processed_textbloecke

url = TEXT
url {
typolink.parameter = {$plugin.tx_servicebw2.solr.leistungen.detailPage}
typolink.additionalParams = &tx_servicebw2_servicebw[id]={field:uid}&tx_servicebw2_servicebw[action]=show&tx_servicebw2_servicebw[controller]=Leistungen
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
}
}
}

plugin.tx_solr.logging.indexing.queue.tx_servicebw2_organisationsEinheiten = 1
plugin.tx_solr.logging.indexing.queue.tx_servicebw2_lebenslagen = 1
plugin.tx_solr.logging.indexing.queue.tx_servicebw2_leistungen = 1
# Important: This file is deprecated and will removed in future
@import 'EXT:service_bw2/Configuration/TypoScript/Solr/setup.typoscript'
66 changes: 66 additions & 0 deletions Configuration/TypoScript/Solr/setup.typoscript
@@ -0,0 +1,66 @@
plugin.tx_solr.index.queue {
tx_servicebw2_organisationsEinheiten = 1
tx_servicebw2_organisationsEinheiten {
indexer {
detailPage = {$plugin.tx_servicebw2.solr.organisationsEinheiten.detailPage}
}

fields {
title = name
content = processed_textbloecke

organisationseinheit_textM = processed_organisationseinheit

url = TEXT
url {
typolink.parameter = {$plugin.tx_servicebw2.solr.organisationsEinheiten.detailPage}
typolink.additionalParams = &tx_servicebw2_organizationalunitsshow[id]={field:uid}&tx_servicebw2_organizationalunitsshow[action]=show&tx_servicebw2_organizationalunitsshow[controller]=Organisationseinheiten
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
}
}

tx_servicebw2_lebenslagen = 1
tx_servicebw2_lebenslagen {
indexer {
detailPage = {$plugin.tx_servicebw2.solr.lebenslagen.detailPage}
}

fields {
title = name
content = processed_textbloecke

url = TEXT
url {
typolink.parameter = {$plugin.tx_servicebw2.solr.lebenslagen.detailPage}
typolink.additionalParams = &tx_servicebw2_lifesituationsshow[id]={field:uid}&tx_servicebw2_lifesituationsshow[action]=show&tx_servicebw2_lifesituationsshow[controller]=Lebenslagen
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
}
}

tx_servicebw2_leistungen = 1
tx_servicebw2_leistungen {
indexer {
detailPage = {$plugin.tx_servicebw2.solr.leistungen.detailPage}
}

fields {
title = name
content = processed_textbloecke

url = TEXT
url {
typolink.parameter = {$plugin.tx_servicebw2.solr.leistungen.detailPage}
typolink.additionalParams = &tx_servicebw2_servicesshow[id]={field:uid}&tx_servicebw2_servicesshow[action]=show&tx_servicebw2_servicesshow[controller]=Leistungen
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
}
}
}
36 changes: 2 additions & 34 deletions Configuration/TypoScript/constants.txt
@@ -1,34 +1,2 @@
plugin.tx_servicebw2 {
view {
# cat=plugin.tx_servicebw2/file; type=string; label=Path to template root (FE)
templateRootPath = EXT:service_bw2/Resources/Private/Templates/
# cat=plugin.tx_servicebw2/file; type=string; label=Path to template partials (FE)
partialRootPath = EXT:service_bw2/Resources/Private/Partials/
# cat=plugin.tx_servicebw2/file; type=string; label=Path to template layouts (FE)
layoutRootPath = EXT:service_bw2/Resources/Private/Layouts/
}

settings {
# cat=plugin.tx_servicebw2/enable/a; type=boolean; label=Override the page title in show actions with item name.
overridePageTitle = 0

organisationseinheiten {
# cat=plugin.tx_servicebw2/enable/b; type=int; label=Set PID where organisationseinheiten should be listed
pidOfListPage =
# cat=plugin.tx_servicebw2/enable/b; type=int; label=Set PID where organisationseinheit should be displayed
pidOfDetailPage =
}
leistungen {
# cat=plugin.tx_servicebw2/enable/c; type=int; label=Set PID where leistungen should be listed
pidOfListPage =
# cat=plugin.tx_servicebw2/enable/c; type=int; label=Set PID where leistungen should be displayed
pidOfDetailPage =
}
lebenslagen {
# cat=plugin.tx_servicebw2/enable/d; type=int; label=Set PID where lebenslagen should be listed
pidOfListPage =
# cat=plugin.tx_servicebw2/enable/d; type=int; label=Set PID where lebenslagen should be displayed
pidOfDetailPage =
}
}
}
# Important: This file is deprecated and will removed in future
@import 'EXT:service_bw2/Configuration/TypoScript/constants.typoscript'
34 changes: 34 additions & 0 deletions Configuration/TypoScript/constants.typoscript
@@ -0,0 +1,34 @@
plugin.tx_servicebw2 {
view {
# cat=plugin.tx_servicebw2/file; type=string; label=Path to template root (FE)
templateRootPath = EXT:service_bw2/Resources/Private/Templates/
# cat=plugin.tx_servicebw2/file; type=string; label=Path to template partials (FE)
partialRootPath = EXT:service_bw2/Resources/Private/Partials/
# cat=plugin.tx_servicebw2/file; type=string; label=Path to template layouts (FE)
layoutRootPath = EXT:service_bw2/Resources/Private/Layouts/
}

settings {
# cat=plugin.tx_servicebw2/enable/a; type=boolean; label=Override the page title in show actions with item name.
overridePageTitle = 0

organisationseinheiten {
# cat=plugin.tx_servicebw2/enable/b; type=int; label=Set PID where organisationseinheiten should be listed
pidOfListPage =
# cat=plugin.tx_servicebw2/enable/b; type=int; label=Set PID where organisationseinheit should be displayed
pidOfDetailPage =
}
leistungen {
# cat=plugin.tx_servicebw2/enable/c; type=int; label=Set PID where leistungen should be listed
pidOfListPage =
# cat=plugin.tx_servicebw2/enable/c; type=int; label=Set PID where leistungen should be displayed
pidOfDetailPage =
}
lebenslagen {
# cat=plugin.tx_servicebw2/enable/d; type=int; label=Set PID where lebenslagen should be listed
pidOfListPage =
# cat=plugin.tx_servicebw2/enable/d; type=int; label=Set PID where lebenslagen should be displayed
pidOfDetailPage =
}
}
}
89 changes: 2 additions & 87 deletions Configuration/TypoScript/setup.txt
@@ -1,87 +1,2 @@
plugin.tx_servicebw2 {
view {
templateRootPaths {
0 = EXT:service_bw2/Resources/Private/Templates/
1 = {$plugin.tx_servicebw2.view.templateRootPath}
}

partialRootPaths {
0 = EXT:service_bw2/Resources/Private/Partials/
1 = {$plugin.tx_servicebw2.view.partialRootPath}
}

layoutRootPaths {
0 = EXT:service_bw2/Resources/Private/Layouts/
1 = {$plugin.tx_servicebw2.view.layoutRootPath}
}
}

settings {
overridePageTitle = {$plugin.tx_servicebw2.settings.overridePageTitle}

organisationseinheiten {
pidOfListPage = {$plugin.tx_servicebw2.settings.organisationseinheiten.pidOfListPage}
pidOfDetailPage = {$plugin.tx_servicebw2.settings.organisationseinheiten.pidOfDetailPage}
}
leistungen {
pidOfListPage = {$plugin.tx_servicebw2.settings.leistungen.pidOfListPage}
pidOfDetailPage = {$plugin.tx_servicebw2.settings.leistungen.pidOfDetailPage}
hideSelectedOrganisationseinheiten =
}
lebenslagen {
pidOfListPage = {$plugin.tx_servicebw2.settings.lebenslagen.pidOfListPage}
pidOfDetailPage = {$plugin.tx_servicebw2.settings.lebenslagen.pidOfDetailPage}
}
}

_CSS_DEFAULT_STYLE (
.service-bw2 .category_list ul li {
padding: .75rem;
}
.service-bw2 .category_list ul li a {
padding: 0;
}
.service-bw-icon svg {
display: inline-block;
height: 28px;
vertical-align: middle;
}

.ul-menu .service-bw-icon svg {
fill: #56555e;
}

[data-bs-toggle="tooltip"] {
position:relative;
cursor: help
}

[data-bs-toggle="tooltip"]::after {
position: absolute;
opacity: 0;
pointer-events: none;
content: attr(data-tooltip-title);
left: -260px;
top: calc(100% + 10px);
border-radius: 3px;
box-shadow: 0 0 5px 2px rgba(100, 100, 100, 0.6);
background-color: white;
z-index: 10;
padding: 8px;
width: 300px;
text-align: center;
transform: translateY(-20px);
transition: all 150ms cubic-bezier(.25, .8, .25, 1);
}

[data-bs-placement="right"]::after {
left: 0;
}

[data-bs-toggle="tooltip"]:hover::after {
opacity: 1;
transform: translateY(0);
transition-duration: 300ms;
}
)
}
# Important: This file is deprecated and will removed in future
@import 'EXT:service_bw2/Configuration/TypoScript/setup.typoscript'

0 comments on commit 2ef6e6f

Please sign in to comment.