2014-06-23 4 views
1

나는 REST 데이터 소스를 많이 사용하는 확장 기능을 개발했으며 typo3 DB에는 로컬 테이블이 없습니다. 아니, 그 URL은 실제로 인간이 읽을 수 없다는 것을 알 수 있습니다.TYPO3 - Extbase SEO Urls

그래서 내가 지금 원하는 것을 이것이다 :

내 rootline에서

난 내 플러그인이 포함 된 페이지를 가지고 있고이 같은 URL 구조를 갖고 싶어 :

www.example.com/category-title-1/seo-friendly-poduct-name.html 

일부 설명에를 다른 URL 부품 :

[category-title-1] => This is a dynamic part from the Webservice and i don't know them in advance 
[seo-friendly-poduct-name] => This comes from the Webservice to. 
[.html] => filename ending 

나는 RealUrl을 많이 읽고 등등 조회 테이블에 대해 뭔가를보고했습니다. 하지만 노치 로컬 조회 테이블을 사용할 수 없습니다.

원하는 URL 구조를 일반적으로 달성 할 수 있습니까?

누군가가 이것을 달성하는 가장 좋은 방법을 설명하려고 할 수 있습니까? 모든 테이블을하지 않고도 자신의 realurl 규칙을 처리 할 수 ​​handleRealURLCoding 방법에서

... 
'fixedPostVars' => array(
    // your extension parameter identifier 
    'yourParamIdentifier' => array(
     array(
      'GETvar' => 'tx_yourextension_plugin[parameter]', 
      'userFunc' => 'EXT:yourextension/pi1/class.tx_yourextension_realurl.php:&tx_yourextension_realurl->handleRealURLCoding', 
     ) 
    ), 
    // set the page id with your plugin to paramater identifier to hide the page segment from url 
    123 => 'yourParamIdentifier', 
), 
... 

:

답변

2

당신은 또한 자신의 룩업 테이블 만 사용자 정의 기능을 사용할 수 있습니다뿐만 아니라.

+0

확인. 그 덕분입니다. 그러면 URL은 어떻게 보일까요? www.example.com/yourParameterIdentifier 및이 부분 [yourParameterIdentifier] 동적 "yourParamIdentifier"를 사용하려면 어떻게해야합니까? 어쩌면 와일드 카드로? – MadeOfSport

+0

배열의 마지막 두 줄은이 경로 세그먼트를 숨기므로 컨트롤러 및 작업에 대한 고유 한 경로 세그먼트를 선택할 수 있습니다. –

+0

'www.example.com/products/category-title-1/seo-friendly-product-name' ('상품은'yourParamIdentifier')과 같이 살아야한다고 생각합니다 - 맞습니다, @sreuter , 아니? – Urs