Post Message IF IS_CAT #2? (forumlist_body.html)

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
aster59
Registered User
Posts: 82
Joined: Sun Jun 26, 2016 1:47 pm
Location: United States

Post Message IF IS_CAT #2? (forumlist_body.html)

Post by aster59 » Fri Apr 07, 2017 12:45 pm

I want to put a message for people before category #2 in my forumlist_body.html, but can't figure it out.

I am wondering if there is a conditional I can use or create like:

Code: Select all

<!-- IF forumrow.S_IS_CAT_2 -->
"Hello World!"
<!-- ENDIF -->
So when it loops through it only prints it out only at category 2 or forumrow 2.

Right around this line in forumlist_body.html:

Code: Select all

<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
I checked here:
https://wiki.phpbb.com/Forumrow_Template_Variables
I couldn't find what I needed.

Thanks.

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3898
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: Post Message IF IS_CAT #2? (forumlist_body.html)

Post by kasimi » Fri Apr 07, 2017 5:17 pm

Code: Select all

<!-- IF forumrow.S_IS_CAT and forumrow.FORUM_ID == 2 -->
  "Hello World!"
<!-- ENDIF -->

aster59
Registered User
Posts: 82
Joined: Sun Jun 26, 2016 1:47 pm
Location: United States

Re: Post Message IF IS_CAT #2? (forumlist_body.html)

Post by aster59 » Fri Apr 07, 2017 6:20 pm

I didn't think of forum_ID. Thanks.

Post Reply

Return to “Extension Writers Discussion”