[Typo3] Conditional header to plugin

Matias Öberg matias.oberg at phatbot.com
Fri Mar 18 12:24:18 CET 2005


The plugin returns nothing if there are no contacts.
Only a <div></div> tag with nothing in it.
So that shouldn't be the problem.

http://typo3.org/documentation/document-library/doc_core_tsref/if/
I've checked that documentation before but I find it a bit confusing.

I really do lack the programming skills but it shouldn't be too hard right.
I also tried the following code. But it just breaks the entire template.
So I must be missing something fundamental.

subparts.CONTACT_BOX = plugin.tx_jpstaff_pi1 
 if.isTrue.cObject < plugin.tx_jpstaff_pi1 {
  subparts.CONTACT_BOX = COA
  subparts.CONTACT_BOX {
   10 = TEXT
   10.value = <h3>Kontaktpersoner</h3>
          20 < plugin.tx_jpstaff_pi1
   }
 }

Any other ideas?

Regards
Matias



More information about the TYPO3-english mailing list