Gabriel Torres Posted January 23, 2022 Posted January 23, 2022 Hi, The default Display > record template from Pages has a small glitch. The <br> tags at the end should be inside the {{if}} statements, otherwise we have too much space at the bottom of the page when the {{if}} conditions aren't met. Default: <br> {{if $commentsAndReviews}} <a id="replies"></a> <h2 class='ipsHide'>{lang="user_feedback"}</h2> <div class='ipsResponsive_pull'> {$commentsAndReviews|raw} </div> {{endif}} <br> {{if $updateForm}} <div class='ipsAreaBackground_light ipsPad'> <h2 class='ipsType_sectionHead'>{lang="cms_front_update_fields" sprintf="$record::database()->recordWord( 1 )"}</h2> <ul class='ipsForm ipsForm_vertical'> {$updateForm|raw} </ul> </div> {{endif}} Suggested fix: {{if $commentsAndReviews}} <br> <a id="replies"></a> <h2 class='ipsHide'>{lang="user_feedback"}</h2> <div class='ipsResponsive_pull'> {$commentsAndReviews|raw} </div> {{endif}} {{if $updateForm}} <br> <div class='ipsAreaBackground_light ipsPad'> <h2 class='ipsType_sectionHead'>{lang="cms_front_update_fields" sprintf="$record::database()->recordWord( 1 )"}</h2> <ul class='ipsForm ipsForm_vertical'> {$updateForm|raw} </ul> </div> {{endif}} Thanks. PS: Please move this topic to the suggestions forums if this isn't considered a bug per se. Thanks. Ibai 1
Recommended Posts