content_from_pid
필드를 사용하여 페이지 자체 대신 글로벌 sys-folder에서 페이지 콘텐츠를 수신합니다. 위대한 작품이지만 원본 페이지 컨텍스트에서 머리글 이미지를 추가하고 머리글 이미지를 부모 페이지에서 상속해야합니다 경우 자체가 페이지에 존재하지 않습니다.TSFE 컨텍스트를 사용하지 않고 콘텐츠 슬라이드를 만들 수있는 방법
다른 방법으로는 "레코드 삽입"콘텐츠 요소를 사용하는 것입니다. 그러나 단점은 글로벌 sys-folder의 새로운 내용이 참조되지 않는다는 것입니다. sys- 폴더를 참조하는 모든 "레코드 삽입"요소에 새로운 내용을 연결해야합니다.
따라서 content_from_pid
에 의해 트리거되는 일반 콘텐츠 대체에 대한 예외를 정의하는 방법이 필요합니다.
기술적으로 content_from_pid
clone $tsfe;
"/typo3/sysext/frontend/Classes/Page/PageGenerator.php"에서 트리거합니다.
그래서이 핵심 기능을 덮어 쓰거나 다른 colPos 및 슬라이드 = -1 atm 인 styles.content.get
인 TS를 수정해야합니다.
예 페이지 트리 : 현재 페이지의 렌더링이 결코 시작하지 않기 때문에 그것이 content_from_pid
페이지로 이동하기 때문에
- [1] global content
-- [2] content source for product Y
-- [7] content source for contact pages
- [3] home page with header image Z
-- [4] product Y page with content-from-pid 2 and headerimg Z from 3
-- [5] page with normal content and header image from 3
-- [6] another page with content-from-pid 7 and headerimg Z from 3
- [8] home page with header image X
-- [9] product Y page with content-from-pid 2 and headerimg X from 8
-- [10] page with normal content and header image from 8
-- [11] another page with content-from-pid 7 and headerimg X from 8
페이지 트리의 관련 부분을 게시 할 수 있습니까? 'content-from-pid' 메카니즘을 사용하는 페이지는 단 하나입니까? –
감사합니다. 많은 페이지에서 content-from-pid를 사용합니다. 위의 질문에 단순한 페이지 트리를 추가했습니다. –