[Typo3] Conditional header to plugin
Peter Klein
peter at umloud.dk
Thu Mar 17 15:56:04 CET 2005
"Matias Öberg" <matias.oberg at phatbot.com> skrev i en meddelelse
news:mailman.1027.1111067787.1576.typo3-english at lists.netfielders.de...
> Hi List,
>
> I want to add a heading to the plugin jpstaff which I'm using on a site.
>
> I'm using the following code in my template.
> ........
> subparts.CONTACT_BOX = COA
> subparts.CONTACT_BOX {
> 10 = TEXT
> 10.value = <h3>Contacts</h3>
> 20 < plugin.tx_jpstaff_pi1
> }
> ......
>
> This looks OK on pages where I added a contact.
> But this also adds the header to pages where there are no contacts added.
>
> I want to be able to add the heading only if the plugin contains data.
>
> Please give me som pointers on how I should set up the conditional
> statement.
>
Hi Matias. Try inserting this line into your COA object, after the 20 part..
(Untested, as I don't have that plugin installed)
if.isTrue.cObject < plugin.tx_jpstaff_pi1
Peter Klein / Umloud Unt
More information about the TYPO3-english
mailing list