[TYPO3-UG Dutch] RealURL met tx_news

"HocomAdvies [  Wiechert Hooghwinkel "HocomAdvies [  Wiechert Hooghwinkel
Mon Oct 26 11:50:21 CET 2015


Benjamin bedankt voor je reactie,

Onderstaand  de opzet zoals ik die heb gebruikt. De de detail-plugin staat op page id 9 en de list op id 8. 

<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
  '_DEFAULT' => 
  array (
    'init' => 
    array (
      'enableCHashCache' => true,
      'appendMissingSlash' => 'ifNotFile,redirect',
      'adminJumpToBackend' => true,
      'enableUrlDecodeCache' => true,
      'enableUrlEncodeCache' => true,
      'emptyUrlReturnValue' => '/',
      'respectSimulateStaticURLs' => true,
    ),
    'pagePath' => 
    array (
      'type' => 'user',
      'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
      'spaceCharacter' => '-',
      'languageGetVar' => 'L',
      'rootpage_id' => '1',
    ),
    'fileName' => 
    array (
      'defaultToHTMLsuffixOnPrev' => 0,
      'acceptHTMLsuffix' => 1,
      'index' => 
      array (
        'print' => 
        array (
          'keyValues' => 
          array (
            'type' => 98,
          ),
        ),
      ),
    ),
    'postVarSets' => 
    array (
      '_DEFAULT' => 
      array (
     // EXT:news start
'news' => array(
        array(
                'GETvar' => 'tx_news_pi1[action]',
        ),
        array(
                'GETvar' => 'tx_news_pi1[controller]',
        ),
        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,
                ),
        ),
),
// EXT:news end
      ),
    ),
  ),
);

Met groet,

Wiechert Hooghwinkel



> Op 26 okt. 2015, om 11:31 heeft Benjamin Serfhos <serfhos at rsm.nl> het volgende geschreven:
> 
> Hi Wiechert,
> 
> Je realurl configuratie vanuit de simpele opzet klopt dan niet, kan je
> deze even plaatsen? En welk PageId staat de detail plugin? Dan kunnen we
> een antwoord formuleren ;-)
> 
> 
> Met vriendelijke groet,
> 
> Benjamin Serfhos
> 
> On 26/10/15 11:25, "typo3-ug-dutch-bounces at lists.typo3.org on behalf of
> "HocomAdvies [ 🌷 Wiechert Hooghwinkel ]""
> <typo3-ug-dutch-bounces at lists.typo3.org on behalf of info at hocom-advies.nl>
> wrote:
> 
>> Ik probeer in combinatie met tx_news realURL de juiste url te laten tonen
>> voor SEO vriendelijke url’s. Aan de automatisch gegeneerde code (auto
>> config) heb ik in een nieuwe file de voorbeeld code van de tx_news manual
>> toegevoegd (autoconfig staat dan uit).
>> 
>> Zonder aanpassing met de autoconfig file van realURL zijn de url’s als
>> volgt:
>> http://www.nieuwe_.
>> nl/blog/blog-bericht/news/vernieuwde-website/?tx_news_pi1[controller]=News
>> &tx_news_pi1[action]=detail&cHash=85312092756c38020ed4cf3224b0a07d
>> 
>> Met de toegevoegde simpele opzet vanuit de manual:
>> http://www.nieuwe_.
>> nl/blog/blog-bericht/news/detail/News/vernieuwde-website/
>> 
>> Met de extra TS settings vanuit de manual:
>> http://www.nieuwe_. nl/blog/blog-bericht/news///vernieuwde-website/
>> 
>> Hier loop ik nu een beetje vast. Hoe krijg ik nu de url als volgt?:
>> 
>> http://www.webchecked.nl/blog/blog-bericht/vernieuwde-website/
>> 
>> 
>> De toegevoegde TS vanuit de tx_news manual:
>> plugin.tx_news {
>>       settings {
>>               link {
>>                       skipControllerAndAction = 1
>>               }
>>       }
>> }
>> 
>> Met groeten,
>> HocomAdvies
>> 
>> Wiechert Hooghwinkel
>> 
>> 
>> 
>> www.hocom-advies.nl
>> 
>> 
>> _______________________________________________
>> TYPO3-UG-Dutch mailing list
>> TYPO3-UG-Dutch at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch
> 
> _______________________________________________
> TYPO3-UG-Dutch mailing list
> TYPO3-UG-Dutch at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch



More information about the TYPO3-UG-Dutch mailing list