2017-04-20 9 views
1

내 확장 프로그램에서 실제 URL 확장자를 사용하여 실행하려고했지만 작동하지 않습니다.TYPO3 실제 URL이 작동하지 않습니다.

내 실수는 어디에서 왔습니까?

내 확장 프로그램에 멋진 URL이있는 것은 어떻게 가능합니까?

내 URL http://domain.tld/eigenprojekte/project/show/test

내 realutl_conf.php realURl에 대한

<?php 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array (
    '_DEFAULT' => 
    array (
    'init' => 
    array (
     'appendMissingSlash' => 'ifNotFile,redirect', 
     'emptyUrlReturnValue' => '/', 
    ), 
    'pagePath' => 
    array (
     'rootpage_id' => '1', 
    ), 
    'fileName' => 
    array (
     'defaultToHTMLsuffixOnPrev' => 0, 
     'acceptHTMLsuffix' => 1, 
     'index' => 
     array (
     'print' => 
     array (
      'keyValues' => 
      array (
      'type' => 98, 
     ), 
     ), 
    ), 
    ), 
), 
    'postVarSets' => array(
     '_DEFAULT' => array(
      'eigenprojekte' => array(
       array(
        'GETvar' => 'tx_eigenprojekte_eigenprojekte[controller]', 
       ), 
       array(
        'GETvar' => 'tx_eigenprojekte_eigenprojekte[show]', 
       ), 
       array(
        'GETvar' => 'tx_eigenprojekte_eigenprojekte[project]', 
        'lookUpTable' => array(
         'table' => 'tx_eigenprojekte_domain_model_project', 
         'id_field' => 'uid', 
         'alias_field' => 'project', 
         'addWhereClause' => ' AND NOT deleted', 
         'useUniqueCache' => 1, 
         'useUniqueCache_conf' => array(
          'strtolower' => 1, 
          'spaceCharacter' => '-' 
         ) 
        ), 
       ), 
      ), 
     ), 
    ), 
); 
+0

입니까? 유체'f : link.action'로 링크를 생성합니까? –

+0

게시 한 URL이 작동하지 않습니다. 다음 오류 메시지가 표시됩니다. 이유 : 세그먼트 "project"가 id = 5 인 페이지에서 예상대로 postVarSet에 대한 키워드가 아닙니다. – mrfr34k

답변

1

먼저 구성을 확인하십시오. setup.ts 파일에 추가하지 않았다면이 두 행을 추가하십시오.

config.simulateStaticDocuments = 0 
config.tx_realurl_enable = 1 

realutl_conf.php 파일에서 아래의 내용을 변경하십시오.

'postVarSets' => array(
     '_DEFAULT' => array(
      ..... 
      ........ 
      array(
       'GETvar' => 'tx_eigenprojekte_eigenprojekte[action]', // add action keyword Not action name 
      ), 

      ......... 
      .......... 

또한 당신은 아래와 같은 fixedPostVars를 사용할 수 있습니다. 여기

'fixedPostVars' => array(
     '19'=> array(
      array(
       'GETvar' => 'tx_news_pi1[controller]', 
       'noMatch' => 'bypass', 
     ), 
      array(
       'GETvar' => 'tx_news_pi1[action]', 
       'noMatch' => 'bypass', 
     ), 
    ), 
), 

19 정확히 작동하지 않습니다 무엇 당신의 페이지 ID

+0

은 여전히 ​​작동하지 않습니다. – mrfr34k