2017-12-13 6 views
0

TYPO3에서 재사용 할 수있는 템플릿을 만들려고합니다. 나는 그것을 지역 사회를위한 무료 연장으로 제공하고 싶다. 현재 YouTube 동영상 시리즈 https://www.youtube.com/watch?v=HtBmim7pc0ohttps://www.sitepackagebuilder.com/) 및 https://github.com/benjaminkott/bootstrap_package에 지정된 기준을 따르고 있습니다. 템플릿을 '마스크'해야하지만 관련 자습서에 액세스 할 수 없습니다. 아무도 나를 도울 수 있습니까? 미리 감사드립니다. 감사 bootstrap_package에서은 TYPO3 템플릿을 확장자로 만들면서 'MASK'웹 사이트 콘텐츠를 만드는 방법에 대한 문서에 대한 링크가 필요합니다.

+1

원하는대로 구체적으로 작성하십시오. contentlelements를 정의하기위한 확장 된'mask '가 있습니다. 질문의 독자를 혼란스럽게 할 수 있습니다. (단어와 태그를 피하려고 노력하십시오.) –

+0

답장을 보내 주셔서 감사합니다. – Sharmistha

+0

미래의 독자들에게 질문을 좀 더 명확히하십시오. 태그는 태그 위키에 명시 적으로 정의되어 있습니다 (예 : 마스크 : "이미지 마스크는 페인트 할 영역을 지정하는 비트 맵입니다."https://stackoverflow.com/questions/tagged/mask – wirap

답변

0

는/구성/TypoScript/constants.typoscript 당신은 참조하십시오

page.fluidtemplate { 
      # cat=bootstrap package: advanced/100/100; type=string; label=Layout Root Path: Path to layouts 
      layoutRootPath = EXT:bootstrap_package/Resources/Private/Layouts/Page/ 
      # cat=bootstrap package: advanced/100/110; type=string; label=Partial Root Path: Path to partials 
      partialRootPath = EXT:bootstrap_package/Resources/Private/Partials/Page/ 
      # cat=bootstrap package: advanced/100/120; type=string; label=Template Root Path: Path to templates 
      templateRootPath = EXT:bootstrap_package/Resources/Private/Templates/Page/ 
     } 

또는를 :

############### 
### FELOGIN ### 
############### 
styles.content.loginform { 
    templateFile = EXT:bootstrap_package/Resources/Private/Templates/FrontendLogin/FrontendLogin.html 
} 

이 부분은 템플릿이 그 경로에서로드됩니다 알려줍니다. 무시하려면 폴더 안에 (편집하려고) 사본을 배치 (당신이 마스크 내가 믿는 말)와 상수에 넣어 파일 :

page.fluidtemplate { 
      layoutRootPath = fileadmin/folder/folder/Layouts 
      partialRootPath = fileadmin/folder/folder/Partials 
      templateRootPath = fileadmin/folder/folder/Templates 
} 

또는 :

styles.content.loginform { 
    templateFile = fileadmin/folder/folder/yourcopyofthefile.html 
} 

그래서 당신은 대체 할 수 있습니다 단일 템플릿 및 전체 템플릿 폴더.

루트 템플릿 (기본 루트 템플릿)> 편집> 일반> 상수에서 백엔드에 설정된 상수 파일을 사용하여 상수를 편집 할 수 있습니다.이 파일은 확장명이 "자원/템플릿"또는 "자원/필드 및 사용 :

<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/folder/folder/typoscript/constants.ts"> 

또는 해당 필드에 직접 재정의 할 코드를 사용하십시오.

잘하면 더 도움이됩니다.

+0

감사합니다. – Sharmistha

+0

당신은 환영합니다 Sharmistha :) 대답은 당신을 위해 괜찮 으면 나에게 투표를 줄 수 있습니까? 도움이 더 필요하면 알려주세요. – Rustyjim

+1

'layoutRootPaths','partialRootPaths' 및'templateRootPaths'를 사용할 수도 있습니다.이 템플릿을 사용하면 전체 기본 템플릿을 복사하는 대신 일부 파일을 선택적으로 재정의 할 수 있습니다. https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects를 참조하십시오. /Fluidtemplate/Index.html#templaterootpaths를 참조하십시오. –