[TYPO3-ttnews] I understood the tx_news extension
Bader Paul
p.bader at techdivision.com
Wed Nov 23 17:15:46 CET 2011
Thx for your Feedback,
If
'22' => 'newsDetailConfiguration', ----> This ist my Detailpage for
the news
When fixedPostVars is empty - realurl will work also
My postVarSets is empty
My realurl conf. looks like that.
<?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(
),
),
),
);
?>
Am 23.11.11 16:57, schrieb Georg Ringer:
> Hi Paul.
>
> Am 23.11.2011 15:40, schrieb Bader Paul:
>> Sorry List I hope anyone can me help width tx_news.
>
> no need to say sorry as this is list is for helping people ;)
>
>> 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
>>
>
> this means that your realurl conf is not used or wrong. so this means
> this problem is more about realurl than about ext:news.
>
>> When I set in the news.ts
>> link.hrDate = 0
>>
>> The link to the detailview will not work.
>
> will not work means what? an error, you get nothing, you get the wrong
> thing? "will not work" is not helpful.
>
> does realurl work when you don't use the fixedPostVars?
>
>> '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',
>
> this means that your detail page is on uid 22, this correct?
>
>> RSS Feed
>
>> baseURL = estrategy.local/
>> absRefPrefix = estrategy.local/
>
> a http:// is there needed!
>
>> 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"?>
>
>
> problem is here that there is still a TS available which makes this
> wrap. so search in the TsOb for "csc-default" and remove all those
> wraps which you don't need.
>
> using the plugin is just one way, of course you can also add the whole
> news via TS only
>
>> Sorry my english ist bad.
>
> not a problem at all.
>
> I hope you understand that private mails don't help there.
>
> georg
> _______________________________________________
> TYPO3-project-tt-news mailing list
> TYPO3-project-tt-news at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-tt-news
More information about the TYPO3-project-tt-news
mailing list