Zwischenstand

This commit is contained in:
Sven Wappler
2021-08-20 13:33:13 +02:00
parent ce6b9e38dc
commit 508d3d2759
32 changed files with 2807 additions and 602 deletions

View File

@@ -0,0 +1,104 @@
blrToggleLike = PAGE
blrToggleLike {
typeNum = 874644
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:application/json
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = BookmarksLikesRatings
pluginName = ToggleLike
vendorName = WapplerSystems
controller = Like
action = toggle
}
}
blrStatusLike = PAGE
blrStatusLike {
typeNum = 874645
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:application/json
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = BookmarksLikesRatings
pluginName = StatusLike
vendorName = WapplerSystems
controller = Like
action = status
}
}
blrToggleBookmark = PAGE
blrToggleBookmark {
typeNum = 874654
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:application/json
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = BookmarksLikesRatings
pluginName = ToggleBookmark
vendorName = WapplerSystems
controller = Bookmark
action = toggle
}
}
blrStatusBookmark = PAGE
blrStatusBookmark {
typeNum = 874655
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:application/json
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = BookmarksLikesRatings
pluginName = StatusBookmark
vendorName = WapplerSystems
controller = Bookmark
action = status
}
}

View File

@@ -1,34 +1,23 @@
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}
}
view {
templateRootPaths.0 = EXT:bookmarks_likes_ratings/Resources/Private/Templates/
templateRootPaths.10 = {$plugin.tx_wsbookmarkpages.view.templateRootPath}
partialRootPaths.0 = EXT:bookmarks_likes_ratings/Resources/Private/Partials/
partialRootPaths.10 = {$plugin.tx_wsbookmarkpages.view.partialRootPath}
layoutRootPaths.0 = EXT:bookmarks_likes_ratings/Resources/Private/Layouts/
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
}
blr = EXT:bookmarks_likes_ratings/Resources/Public/JavaScript/scripts.js
}
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>
)
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:bookmarks_likes_ratings/Configuration/TypoScript/Ajax/" extensions="typoscript">