简体   繁体   English

Typo3我该如何使DCE高出一格?

[英]Typo3 How do i get this DCE one div above?

quick question here: 这里的简单问题:

I am using DCE on Typo 6.1.5. 我在Typo 6.1.5上使用DCE。 I am trying to set an element out of the "container" div. 我正在尝试从“容器” div中设置一个元素。 But it rarely works. 但是它很少起作用。

<div id="contentMarginFix">..</div>
<div id="contact">
   <div class="container">
      <div class="gmaps">
      </div>
   </div>
</div>

I want to get the "gmaps" div in the "contact" div. 我想在“联系人” div中获得“ gmaps” div。 Not in the "container" one. 不在“容器”中。

Here is the DCE Template 这是DCE模板

http://gyazo.com/2c0a13746cdd834ebdb86a0b64fd10b1.png http://gyazo.com/2c0a13746cdd834ebdb86a0b64fd10b1.png

And here is the template for the page 这是页面的模板

http://i.imgur.com/y2rwP6P.jpg http://i.imgur.com/y2rwP6P.jpg

I was trying for two hours now maybe i just don't see it but i appreciate your help very much! 我现在尝试了两个小时,也许我只是看不到它,但非常感谢您的帮助!

From the screenshots you provided I'd say it's possible the layout template is in the wrong place. 从您提供的屏幕截图中,我会说布局模板可能放在错误的位置。 Make sure the contact.html you use as a layout is in the right place. 确保用作布局的contact.html在正确的位置。

If this is a basic fluid template directly in typo3 make sure the file is in the place you defined in your setup typoscript. 如果这是直接在typo3中使用的基本流体模板,请确保该文件位于您在设置错误中定义的位置。 Default would be something like this: 默认将是这样的:

layoutRootPath = fileadmin/templates/Layouts/

If this is inside an extension the correct place for the layout template is 如果在扩展名内,则布局模板的正确位置是

Resources\Private\Layouts

Be aware that in more recent extbase versions the naming conventions are more strict and require a capital first letter for the html files (so Contact.html) 请注意,在最新的extbase版本中,命名约定更加严格,并且要求html文件使用大写的首字母(因此Contact.html)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM