bookmark-pages/Configuration/TypoScript/setup.typoscript

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-08-16 16:15:21 +02:00
plugin.tx_wsbookmarkpages {
view {
templateRootPaths.10 = {$plugin.tx_wsbookmarkpages.view.templateRootPath}
partialRootPaths.10 = {$plugin.tx_wsbookmarkpages.view.partialRootPath}
layoutRootPaths.10 = {$plugin.tx_wsbookmarkpages.view.layoutRootPath}
}
settings {
storeLocal = {$plugin.tx_wsbookmarkpages.settings.storeLocal}
localStorageTTL = {$plugin.tx_wsbookmarkpages.settings.localStorageTTL}
}
}
page.includeJSFooterlibs {
bookmark_pages_jquery = https://code.jquery.com/jquery-2.2.4.min.js
bookmark_pages_jquery {
excludeFromConcatenation = 1
disableCompression = 1
external = 1
}
}
tt_content.login.stdWrap.postCObject = TEXT
tt_content.login.stdWrap.postCObject.value (
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function(event) {
let button = document.querySelector('.frame-type-login [type="submit"]');
if (button) {
button.addEventListener('click', function () {
localStorage.setItem('txBookmarkPagesReload', '1');
});
}
});
</script>
)