1. 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

Discussion in 'Resolved Bug Reports' started by Jon W, Jan 10, 2013.

  1. Jon W

    Jon W Well-Known Member

    Spotted this while trying to remove all references to forums in NoForo...

    On line 12 of node_page_level_2 template, replace line:
    <h3 class="nodeTitle"><a href="{xen:link pages, $page}" data-description="#nodeDescription-{$forum.node_id}">{$page.title}</a></h3>
    <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:
    <xen:if is="{$page.description}"><blockquote class="nodeDescription baseHtml muted" id="nodeDescription-{$page.node_id}">{xen:raw $page.description}</blockquote></xen:if>
    <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).
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member


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

    Page desc block:

    			<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:

    			<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>
    vVv, erich37 and Jon W like this.
  3. Mike

    Mike XenForo Developer Staff Member

    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.
    Slavik likes this.

Share This Page