[TYPO3-ttnews] human readable dates example in manual
Mark Roemermann
mark at nasaustralia.com.au
Wed Feb 11 09:01:29 CET 2015
OK. As per the manual I've enabled
plugin.tx_news.settings.link {
hrDate = 1
hrDate {
day = j
month = n
year = Y
}
}
and my news list links to the single view with:
http://domain.example/news-events/article/title-of-article/?tx_news_pi1%5Bday%5D=28&tx_news_pi1%5Bmonth%5D=10&tx_news_pi1%5Byear%5D=2014&cHash=0ccecab457366e658583d49256a58584
When I then put the following into the advanced config:
'fixedPostVars' => array(
'newsDetailConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[day]',
'noMatch' => 'bypass',
),
array(
'GETvar' => 'tx_news_pi1[month]',
'noMatch' => 'bypass',
),
array(
'GETvar' => 'tx_news_pi1[year]',
'noMatch' => 'bypass',
),
/*array(
'GETvar' => 'tx_news_pi1[action]',
'valueMap' => array(
'detail' => '',
),
'noMatch' => 'bypass'
),
array(
'GETvar' => 'tx_news_pi1[controller]',
'valueMap' => array(
'NewsZZZZZZZ' => '',
),
'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,
)
)
),
'newsCategoryConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[overwriteDemand][categories]',
'lookUpTable' => array(
'table' => 'sys_category',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
'newsTagConfiguration' => array(
array(
'GETvar' => 'tx_news_pi1[overwriteDemand][tags]',
'lookUpTable' => array(
'table' => 'tx_news_domain_model_tag',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
'629' => 'newsDetailConfiguration',
Then my links change to:
http://domain.example/news-events/article/title-of-article/
So the dates aren't coming through, although the parameters seem to be
detected and removed from the URL.
What am I doing wrong?
Thanks again.
MarkR.
On 11/02/2015 4:37 PM, Mark Roemermann wrote:
> Hi list.
>
> I don't have much experience with realurl (only used autoconf
> previously) or tx_news. I'm trying to get the human readable dates
> sample
> here:http://docs.typo3.org/typo3cms/extensions/news/Main/Administration/Realurl/Index.html#human-readable-dates
>
> to work with the advanced configuration example above it in the manual.
>
> Where does the human readable dates sample get inserted? Is it in
> postvarsets or fixedpostvars?
>
> Thanks all,
> MarkR.
>
More information about the TYPO3-project-tt-news
mailing list