Ext: pw_comments.

pw_comments (v. 4.0.0) für tx_news einrichten

Setup-Settings von tx_news anpassen:

 

#für pwcomments aktivieren // DetailseitenUIDs in real_config.php ergänzen
link.skipControllerAndAction = 1

 

Setup-Settings von tx_pwcomment anpassen, um die NewsID zu übergeben

 

plugin.tx_pwcomments {
  settings {
    useEntryUid = 1
    entryUid = TEXT
    entryUid.data = GP:tx_news_pi1|news
  }
}

 

Im Fluid-Templates Comment New.html muss der Form-Tag um das Attribut addQueryString = "true" ergänzt werden, dadurch werden die Parameter für tx_news angehängt.

 

<f:form name="newComment" object="{newComment}" addQueryString="true" action="create" section="{settings.writeCommentAnchor}">

 

Im Installtool muss nun noch der cHash so angepasst werden, dass die Comment-Variablen nicht einbezogen werden:

 

[FE][cHashExcludedParameters] => 'L,tx_pwcomments_pi1[action],tx_pwcomments_pi1[controller],tx_pwcomments_pi1[commentToReplyTo],tx_pwcomments_pi1[comment]'

 

Bei der Verwendunug von RealURL müssen die URLs nocht hübsch werden. hierzu kommt in die real_conf.php folgender Eintrag und wird dann den SINGLE-Ansichtsseiten zugewiesen:

 

'fixedPostVars' => array(
  'newsDetailConfiguration' => array(
    array(
      'GETvar' => 'tx_news_pi1[action]',
      'valueMap' => array(
        'detail' => '',
       ),
       'noMatch' => 'bypass'
    ),
    array(
       'GETvar' => 'tx_news_pi1[controller]',
       'valueMap' => array(
         'News' => '',
        ),
       'noMatch' => 'bypass'
    ),
    array(
       'GETvar' => 'tx_news_pi1[news]',
       'lookUpTable' => array(
         'table' => 'tx_news_domain_model_news',
         'id_field' => 'uid',
         'alias_field' => 'title',
         'addWhereClause' => ' AND NOT deleted',
         'useUniqueCache' => 1,
         'useUniqueCache_conf' => array(
           'strtolower' => 1,
           'spaceCharacter' => '-'
         ),
         'languageGetVar' => 'L',
         'languageExceptionUids' => '',
         'languageField' => 'sys_language_uid',
         'transOrigPointerField' => 'l10n_parent',
         'autoUpdate' => 1,
         'expireDays' => 180,
      )
    )
  ),
  # HIER JEDER NEWSDETAILSEITE NEWSKONFIGURATION ZUWEISEN
  '23' => 'newsDetailConfiguration',
),

 

Nun sollte es gehen.