-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I am using TYPO3 V12.4.22 and ts3bootstrap V5.3.18.
Every element in the mega menu is enclosed in <!-- TYPO3SEARCH_* --> .
When searching for a term that appears in the menu, every page is found in the search. This is not useful here.
I have not been able to find a setting that would allow me to disable the output of the markers in the megamenu.
I would also like to add the marker only in colPos = 0 and not in Footer and Jumbotron.
I have now solved it by inserting the following Typoscript:
[loaded('indexed_search')]
lib.dynamicContent {
5 {
megamenu.cObject = RECORDS
megamenu.cObject {
source.data = register:pageUid
tables = pages
conf.pages = TEXT
conf.pages.field = tx_t3sbootstrap_megamenu
}
combinedCheck.cObject = TEXT
combinedCheck.cObject {
value = {register:colPos}-{register:megamenu}
value.insertData = 1
}
}
}
lib.dynamicContent.10.wrap.insertData = 1
lib.dynamicContent.10.wrap.if {
value = 0-0
equals.data = register:combinedCheck
}
lib.dynamicContent.10.wrap.insertData = 1
lib.dynamicContent.10.wrap.if {
value = 0-0
equals.data = register:combinedCheck
}
[global]
Is there a simpler way to do this?
I noticed also, if the page-title is placed in content area, it is outside the indexed_search markers. That's not ideal either.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels