我想使用"正确的内容"我的模板中的列。所以我在后端创建了一些这样的示例内容:
我自己编写了模板的源代码。它看起来像这样:
public class forwardScreenHandler implements ActionListener{
public void actionPerformed(ActionEvent event){
mainTextArea.setText("Nice change!");
mainTextArea.setText("do it again!");
mainTextArea.setText("Please be third!");
}
}
public void chooseYes(){
yesnoButtonPanel.setVisible(false);
continueButtonPanel.setVisible(true);
continueButtonPanel.setBackground(Color.red);
continueButton.removeActionListener(contHandler);
continueButton.addActionListener(userCont);
position = "yes";
mainTextArea.setText("Blah Blah Blah");
}
在index.html文件中我有这个源代码:
page = PAGE
page.stylesheet = fileadmin/template_ffw/style/style.css
page.typeNum = 0
page.10 = TEMPLATE
page.10.template = FILE
page.10.template.file = fileadmin/template_ffw/index.html
page.10.workOnSubpart = DOCUMENT_BODY
page.10.subparts {
CONTENT < styles.content.get
ASSIDE < styles.content.getRight
MENU = HMENU
MENU.1 = TMENU
MENU.1 {
NO = 1
NO.allWrap = <div class="level1"> | </div>
}
}
page.10.marks{
LOGO = IMAGE
LOGO.altText = Logo
LOGO.file = fileadmin/template_ffw/style/ffw_logo.png
ROOTLINE = HMENU
ROOTLINE.special=rootline
ROOTLINE.special.range= 0 | -1
ROOTLINE.1=TMENU
ROOTLINE.1.NO.allWrap= | / |*| | / |*| |
}
但是在前端没有显示右栏的内容。所以我的typoscript可能有一个错误。前端页面如下所示:
我知道这是一个问题的源代码,但是我长期搜索了我的错误,我不知道它在哪里。而不是更少的信息。我希望你能帮助我。
答案 0 :(得分:1)
正如您在文件夹&#34; Helper&#34;中的www/vendor/typo3/cms/typo3/sysext/css_styled_content/Configuration/TypoScript/setup.txt
文件StylesContent.txt
中看到的那样不再自动包含。
所以我想你必须包括
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:css_styled_content/Configuration/TypoScript/Helper/StylesContent.txt">
定义了getLeft,getRight和getBorder。
或者你可以在之后添加这一行
ASSIDE < styles.content.getRight
ASSIDE.select.where = {#colPos}=2
或者我从模板时间ASSIDE.select.where = colPos=2
好吧,但正如@Thomas已经建议的那样,你应该切换到FLUIDTEMPLATE
,但是直接获取列并不依赖于此。我也想让你知道FLUID是正确的。