[TYPO3-english] How to exclude some pages in PIDinRootline?
Ugur Kocak
drugurkocak at gmail.com
Mon Nov 12 03:13:55 CET 2012
Hi again,
I need to run some Typoscript code except certain pages. I mean I need to exclude some pages. Example code;
> #Default Description:
> page.meta{
> description.field = description
> }
> #Description if Default Description is empty:
> page.meta.description.ifEmpty.stdWrap.cObject = CONTENT
> page.meta.description.ifEmpty.stdWrap.cObject {
> table= tt_content
> select {
> selectFields = bodytext
> }
> renderObj =COA
> renderObj {
> 10=TEXT
> 10 {
> field = bodytext
> stripHtml=1
> crop = 1200 | ... | 1
> }
> }
> }
I know that I can run certain code on a specific page via
[PIDinRootline = x,y]
#put the TS here
[end]
But, I couldn't find any document explaining how to exclude certain pages (like pages for tt_news).
Although globalVar permits usage of != operator, PIDinRootline doesn't I think. I tried that one but failed:
[PIDinRootline != x,y]
I will be happy if one gives me advice. Is there a way to exclude certain pages?
I am sorry if I am asking dummy questions, but as you may expect :)
Kind Regards,
Ugur
More information about the TYPO3-english
mailing list