2014-09-23 2 views
0

하위 개체의 콘텐츠를 표시하고 특정 div에 래핑하고 싶습니다. 여기 내 코드는 다음과 같습니다.Typoscript : Wrap 콘텐츠 요소

lib.content = CONTENT 
lib.content { 
    stdWrap.wrap = <div id="sub-content-scroll">|</div> 
    renderObj.stdWrap.wrap = <div class="page">|</div> 
    table = tt_content 
    select { 
    pidInList.cObject < lib.allPid 
    where = colPos = 0 
    orderBy = pid 
    }  
} 

내 질문은 : 어떻게 pid 당 하나만 감쌀 수 있습니까? 이제는 모든 content 요소를 페이지 div로 래핑합니다. 그러나 사이트별로 랩을 달성하고 싶습니다. 추신 : lib.allPid는 ID가있는 kommaseparated 목록입니다.

나를 도와 줄 사람이 있습니까?

는 Coreblade

+0

: http://typo3.org/documentation/ 스 니펫/sd/38 / – Adrian

답변

0

감사 대답 나는 내 문제를 해결

주셔서 대단히 감사합니다. 이 솔루션은 하나 둘 (lib.content 및 lib.allPid)를 구현하는 것이 었습니다 :

lib.content = HMENU 
lib.content { 
    stdWrap.wrap = <div id="sub-content-scroll">|</div> 
    special = directory 
    special.value = 7 
    1 = TMENU 
    1.NO { 
    doNotLinkIt = 1 
    field = uid 
    stdWrap.cObject = CONTENT 
    stdWrap.cObject { 
     wrap = <div class="page">|</div> 
     table = tt_content 
     select { 
     pidInList.field = uid 
     where = colPos = 0 
     orderBy = pid 
     } 
    } 
    } 
} 

Ragards Coreblade을

당신이를 위해`제 Frame`을 사용할 수 있습니다