first commit

This commit is contained in:
Sven Wappler
2021-08-16 16:15:21 +02:00
commit fde2759722
32 changed files with 1841 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
plugin.tx_wsbookmarkpages {
view {
# cat=plugin.tx_wsbookmarkpages/file; type=string; label=Path to template root (FE)
templateRootPath = EXT:ws_bookmark_pages/Resources/Private/Templates/
# cat=plugin.tx_wsbookmarkpages/file; type=string; label=Path to template partials (FE)
partialRootPath = EXT:ws_bookmark_pages/Resources/Private/Partials/
# cat=plugin.tx_wsbookmarkpages/file; type=string; label=Path to template layouts (FE)
layoutRootPath = EXT:ws_bookmark_pages/Resources/Private/Layouts/
}
settings {
# cat=plugin.tx_wsbookmarkpages/general; type=boolean; label=Store bookmarks local:If set the bookmarks will be stored in the local storage from the clients browser.
storeLocal = 1
# cat=plugin.tx_wsbookmarkpages/general; type=int; label=Local storage TTL (s):Time in seconds bookmarks might be read from the browsers local storage before they get queried from the server. Just used when storeLocal is set.
localStorageTTL = 3600
}
}

View File

@@ -0,0 +1,34 @@
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>
)