Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
tenaki Posted October 21, 2015 Posted October 21, 2015 Sorry another one. I am using <if> to hide custom fields in my template if the fields are left empty which works fine {{if count( $record->customFieldDisplayByKey('county','display') )}} {$record->customFieldDisplayByKey('county', 'display')|raw} {{endif}} But if I add list items <li> or breaks <br />they are visible {{if count( $record->customFieldDisplayByKey('county','display') )}} <li> {$record->customFieldDisplayByKey('county', 'display')|raw} </li> {{endif}} Is there away to hide not just the content of the field but formatting as well?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.