Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Kirill N Posted November 30, 2015 Posted November 30, 2015 Hello, In the "record" template, I want to display something only if the record belongs to a certain category. How do I check this? I know the if condition should look something like this: {{if $record->category == 1}} {{endif}} But I can't figure out how to format it properly. Spoiler @opentype tagging you here since you're likely to know
opentype Posted November 30, 2015 Posted November 30, 2015 You were already close … {{if $record->container()->id == xx}} {{endif}}
Kirill N Posted November 30, 2015 Author Posted November 30, 2015 1 hour ago, opentype said: You were already close … {{if $record->container()->id == xx}} {{endif}} Worked perfectly, thank you!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.