[TYPO3-ttnews] I understood the tx_news extension

Bader Paul p.bader at techdivision.com
Wed Nov 23 15:40:55 CET 2011


Sorry List I hope anyone can me help width tx_news.

It's a fine Extension but I can't create a speaking url - what i have to 
do.


Also I can't create a rss Feed.

I sit now 7 hours only for this Problems - who can me help - or have a 
tutorial that i can understood.

I get all the time following url
http://typo3.local/typo3/project/estrategy.local/news.html?tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]=2&tx_news_pi1[day]=17&tx_news_pi1[month]=November&tx_news_pi1[year]=2011&cHash=0c3ac8e02648639c87dea4bd832241cc

When I set in the news.ts
link.hrDate = 0

The link to the detailview will not work.

Thanks to  evrybody how can me help.

Thanks Paul

I have the following code in my realurl config

<?php
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= 
',tx_realurl_pathsegment,alias,nav_title,title';
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
     '_DEFAULT' => array(
         'init' => array(
             'enableCHashCache' => 1,
             'appendMissingSlash' => 'ifNotFile',
             'enableUrlDecodeCache' => 1,
             'enableUrlEncodeCache' => 1,
             'postVarSet_failureMode' => '',
         ),
         'redirects' => array(),
         // configure filenames for different pagetypes
         'fileName' => array(
             'defaultToHTMLsuffixOnPrev' => 1,
             'index' => array(
                 'print.html' => array(
                     'keyValues' => array(
                         'type' => 98,
                     ),
                 ),
                 'rss091.xml' => array(
                     'keyValues' => array(
                         'type' => 101,
                     ),
                 ),
                 'rdf.xml' => array(
                     'keyValues' => array(
                         'type' => 102,
                     ),
                 ),
                 'atom.xml' => array(
                     'keyValues' => array(
                         'type' => 103,
                     ),
                 ),
             ),
         ),
         'preVars' => array(
             array(
                 'GETvar' => 'no_cache',
                     'valueMap' => array(
                         'nc' => 1,
                     ),
                     'noMatch' => 'bypass',
                 ),
                 /*
                 array(
                     'GETvar' => 'L',
                     'valueMap' => array(
                         'de' => '0',
                         'en' => '1',
                     ),
                     'valueDefault' => 'de',
                     #'noMatch' => 'bypass',
                 ),
                 */
             ),
             'pagePath' => array(
                 'type' => 'user',
                 'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
                 'spaceCharacter' => '-',
                 'languageGetVar' => 'L',
                 'expireDays' => 7,
                 'rootpage_id' => 2,
                 'firstHitPathCache' => 1,
             ),
             'fixedPostVars' => array(
                 'newsDetailConfiguration' => array(
               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' => '-'
                      )
                   )
               )
           ),
  '22' => 'newsDetailConfiguration',
             ),
             'postVarSets' => array(
                 '_DEFAULT' => array(

             ),
         ),
     ),
);
?>





RSS Feed

1.I created a new Page
2.I include the news plugin and meke a list
3.I make a in the Page a Typoscript Template like the following code


page = PAGE
page.10 < styles.content.get

config {
     # deactivate Standard-Header
     disableAllHeaderCode = 1
     # no xhtml tags
     xhtml_cleaning = none
     admPanel = 0
     metaCharset = utf-8
     # define charset
     additionalHeaders = Content-Type:text/xml;charset=utf-8
     disablePrefixComment = 1
         baseURL = estrategy.local/
         absRefPrefix = estrategy.local/
      }

# set the format
      plugin.tx_news.settings.format = xml

I GET ALL THE TIME following error

XML-Verarbeitungsfehler: XML- oder Text-Deklaration nicht am Beginn der 
Entität
Adresse: 
http://typo3.local/typo3/project/estrategy.local/socialmedia/rss.html
Zeile Nr. 1, Spalte 36:<div id="c91" class="csc-default" ><?xml 
version="1.0" encoding="utf-8"?>
-----------------------------------^



Sorry my english ist bad.


Thanks for helping.


More information about the TYPO3-project-tt-news mailing list