Hallo zusammen,
nachdem ich die comments-Extension ohne Probleme via TS für tt_news eingebunden habe
wollte ich nun dasselbe für meine yag-Galerie umsetzen.
Leider habe ich es bis jetzt nicht geschafft die Kommentare für yag einzubinden.
Hat einer von Euch evtl. dies schon erfolgreich eingebunden?
Mir geht es hier um die reine Einbindung via TS!
Mein bisheriger Ansatz seht Ihr ein paar Zeilen weiter.
Kurze Erklärung:
Form & Liste sind getrennt um das Formular nur im eingeloggten Zustand einzubinden.
Ist der Besucher nicht angemeldet sieht er eine simple Infobox.
Genau derselbe Aufbau funktioniert tadellos für tt_news.
plugin.tx_comments_pi1{
includeLibs = EXT:comments/pi1/class.tx_comments_pi1.php
userFunc = tx_comments_pi1->main
code = FORM,COMMENTS
storagePid = 169
externalPrefix = tx_yag
templateFile = fileadmin/templates/site/ext/comments/template/template_gallerycomments.html
additionalClearCachePages =
#ratingsConfig < plugin.tx_ratings_pi1
#ratingsConfig.additionalCSS = EXT:myext/res/ratings_css_for_comments.css
advanced {
# Number of comments per page
commentsPerPage = 10
# Comments can be automatically closed after X months, days or hours. Specify integer number followed by m, d or h. Empty means "no limit"
closeCommentsAfter =
# Date format specification. See PHP date() function for details. If empty, uses TYPO3 date format defined in Install tool
dateFormat =
# Date format mode. Can be either "date" or "strftime" (without quuotes). Means what PHP function to use for date formatting
dateFormatMode = date
# Should FE user data be set to form automatically?
preFillFormFromFeUser = 1
# Should ratings be used?
enableRatings = 0
# Create links inside comment text automatically?
autoConvertLinks = 1
# Enable URL log (for "List" mode)
enableUrlLog = 1
# If set, reverses sortng to show last comments first
reverseSorting = 0
}
preventDuplicatePosts = 1
requiredFields = firstname,content
spamProtect {
requireApproval = 0
useCaptcha = 0
checkTypicalSpam = 0
considerReferer = 0
notificationEmail = {$plugin.tx_comments_pi1.notificationEmail}
fromEmail = {$plugin.tx_comments_pi1.fromEmail}
emailTemplate = {$plugin.tx_comments_pi1.emailTemplate}
spamCutOffPoint = 0
}
# stdWrap for error message when required field is empty
requiredFields_errorWrap {
dataWrap = <span class="tx-comments-required-error">{LLL:EXT:comments/pi1/locallang.xml:error}: |</span>
}
# stdWrap for "First name" in the comment output
firstName_stdWrap =
# stdWrap for "Last name" in the comment output
lastName_stdWrap =
# stdWrap for "E-mail" in the comment output
email_stdWrap =
# stdWrap for "web site" in the comment output
webSite_stdWrap =
# stdWrap for "Location" in the comment output
location_stdWrap =
# stdWrap for "Content" in the comment output
content_stdWrap =
# maps pi1 to associated tables where pi1 plugin stores records
# Note: do not use { } syntax because other plugins may add entries here and they should not be overriden!
prefixToTableMap.tx_album3x_pi1 = tx_album3x_images
prefixToTableMap.tx_commerce_pi1 = tx_commerce_products
prefixToTableMap.tx_irfaq_pi1 = tx_irfaq_q
prefixToTableMap.tx_mininews_pi1 = tx_mininews_news
prefixToTableMap.tx_yag = tx_yag_domain_model_item
# some extensions may use url parameter other than showUid to show single record. Mapping here shows table to parameter mapping
# Note: do not use { } syntax because other plugins may add entries here and they should not be overriden!
#showUidMap.tx_yag_pi = item
pageBrowser < plugin.tx_pagebrowse_pi1
}
temp.comments_form_pi < plugin.tx_comments_pi1
temp.comments_form_pi{
code = FORM
}
temp.comments_list < plugin.tx_comments_pi1
temp.comments_list{
code = COMMENTS
}
temp.comments_form = HTML
temp.comments_form {
value = <div id="logintocomment"><span><a href="#" class="center login">Diskutiere mit!</a></span><div><a href="#" class="login">Anmelden</a> <a href="/community/registrierung.htm" id="register">Neu registrieren</a></div></div>
}
[loginUser = *]
temp.comments_form < temp.comments_form_pi
[global]
Danke im Voraus 🙂