Jump to content

Adjustment to the default Pages > Display > record template


Recommended Posts

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.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...