• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Error in node_page_level_2 template

Jon W

Well-known member
#1
Spotted this while trying to remove all references to forums in NoForo...

On line 12 of node_page_level_2 template, replace line:
HTML:
<h3 class="nodeTitle"><a href="{xen:link pages, $page}" data-description="#nodeDescription-{$forum.node_id}">{$page.title}</a></h3>
with:
HTML:
<h3 class="nodeTitle"><a href="{xen:link pages, $page}" data-description="#nodeDescription-{$page.node_id}">{$page.title}</a></h3>
(i.e., replace $forum with $page).

Because this then fixes the "bug" (any thoughts?) that page descriptions don't appear as tooltips (on non touch devices), fixing the above error then causes a problem that the tooltip text is too dark.

This can be fixed by replacing line 13:
HTML:
<xen:if is="{$page.description}"><blockquote class="nodeDescription baseHtml muted" id="nodeDescription-{$page.node_id}">{xen:raw $page.description}</blockquote></xen:if>
with:
HTML:
<xen:if is="{$page.description}"><blockquote class="nodeDescription baseHtml" id="nodeDescription-{$page.node_id}">{xen:raw $page.description}</blockquote></xen:if>
(i.e., removing the muted class from the blockquote).
 

Jake Bunce

XenForo moderator
Staff member
#2
Confirmed.

Also, when comparing pages with forums, the description block for pages has two omissions.

Page desc block:

Code:
			<xen:if is="{$page.description}"><blockquote class="nodeDescription baseHtml muted" id="nodeDescription-{$page.node_id}">{xen:raw $page.description}</blockquote></xen:if>
Forum desc block:

Code:
			<xen:if is="{$forum.description} AND @nodeListDescriptions">
				<blockquote class="nodeDescription {xen:if @nodeListDescriptionTooltips, nodeDescriptionTooltip} baseHtml" id="nodeDescription-{$forum.node_id}">{xen:raw $forum.description}</blockquote>
			</xen:if>
 

Mike

XenForo developer
Staff member
#3
A bit fixed here, but not displaying the description as a tooltip is as designed, since we don't have anything to show in the second row.