realURL 및 extbase를 사용하여 견해를 설명합니다. Extbase : 자세한 내용은 realURL의 컨트롤러 및 작업 구성을 참조하십시오.
이되는 작업 및 제어, 예를 들어 "를 자세히 '미정/show/detail/title-of-the-item
"보기 "의 형태로, 적어도 질서있는 URL을 표시하는 목록/세부 확장하기위한 간단한 해결책이 있는가
예를 들어 RealURL: Remove Controller and Action from URL에서 제안한대로 제어기 및 동작을 제거하려고했지만 항상 작동하지 않는 부분이 있습니다. 미친. cHash도 제거하지 않습니다.
순간에 내 realurl_conf은 다음과 같습니다
<?php
$TYPO3_CONF_VARS['EXTCONF'] ['realurl'] ['_DEFAULT'] = getRealURL('1');
function getRealURL($root)
{
return array(
'init' => array(
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableCHashCache' => 1,
'enableUrlEncodeCache' => 1,
'respectSimulateStaticURLs' => 0,
'postVarSet_failureMode'=>'redirect_goodUpperDir',
),
'redirects_regex' => array (
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'fr' => '1',
),
'valueDefault' => 'de',
'noMatch' => 'bypass',
),
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
),
'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' => 1,
),
'postVarSets' => array(
'_DEFAULT' => array(
'wb' => array(
array(
'GETvar' => 'tx_weiterbildung_pi1[item]' ,
'lookUpTable' => array(
'table' => 'tx_weiterbildung_domain_model_item',
'id_field' => 'uid',
'alias_field' => 'kurs_titel',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
),
),
'fileName' => array(
'defaultToHTMLsuffixOnPrev'=>0,
'index' => array(
'rss.xml' => array(
'keyValues' => array(
'type' => 100,
),
),
'rss091.xml' => array(
'keyValues' => array(
'type' => 101,
),
),
'rdf.xml' => array(
'keyValues' => array(
'type' => 102,
),
),
'atom.xml' => array(
'keyValues' => array(
'type' => 103,
),
),
),
),
);
}
/**********************************
REALURL end
***********************************/
?>
아마도 맞을 것입니다. 나는 단지 피곤했다. http://stackoverflow.com/questions/26142614/realurl-remove-controller-and-action-from-url에서 사용중인 컨트롤러 클래스를 게시하려고합니다. 차이점에 대해 말할 수 있습니다. – Urs
질문에 대한 대답이 아닙니다. 문제를 해결하는 대신 문제를 피하고 있습니다. 사실 그는 컨트롤러에 컨트롤러와 액션을 포함하지 않습니다. 이것은 그가 단순히 그들에게 손대지 않는다는 것을 의미합니다. 내가 아는 한 일반적으로 GETvar 컨트롤러와 동작을 포함 할 수 있습니다. 이제 최소한 Controller를 우회하고 postVarSet 키, 작업 및 항목 이름이 남습니다. – Panade