简体   繁体   English

打字稿:如果页面不等于

[英]Typoscript: If page is not equal to

I'm trying to include a typoscript on the child pages of the page it's included on. 我正在尝试在包含它的页面的子页面上添加一个印刷文字。

On page id 272 I have included in the setup a typoscript file: 在页面ID 272上,我在设置中包括了一个排字文件:

<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/templates/typoscript/fancyBoxPopup.ts">

And I only want this typoscript to run on that pages children. 而且我只希望此印刷文字在该页面上运行。 So I tried this: 所以我尝试了这个:

[globalVar = TSFE:id != 252, 253, 254, 270, 272, 271, 273, 274] [globalVar = TSFE:id!= 252、253、254、270、272、271、273、274]

But that makes the script run on all children and parents (those listed in the statement) 但这会使脚本在所有孩子和父母(声明中列出的父母)上运行
Here is the full script: 这是完整的脚本:

[globalVar = TSFE:id != 252, 253, 254, 270, 272, 271, 273, 274]
    page.includeJS >
    page.includeJS.ieFixes = fileadmin/templates/js/ieFixes.js

    columnWidth {
        page {
            main = 400
        }
    }
[end]   

I think I manage to fix it. 我想我设法解决它。

I found PIDupinRootline . 我找到了PIDupinRootline

So the final code looks like this: 因此,最终代码如下所示:

[PIDupinRootline = 252,253,254,270,272,271,273,274]
    ...
[end]   

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

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