Skip to main content
added 294 characters in body
Source Link
migmaker
  • 982
  • 1
  • 7
  • 19

I got an entry template from a structured section.
With prev / next nav links at entry bottom.
But the next sibling is deactivated.
So the page return is 404 not found !

{% set prev = entry.prevSibling %}  
{% set next = entry.nextSibling %}

{% if prev %}
    <a class="nav-prev nav-left" href="{{ prev.url }}"><&nbsp;{{ prev.title }}</a>
{% endif %}
{% if next %}
    <a class="nav-next nav-right" href="{{ next.url }}">{{ next.title }}&nbsp;></a>
{% endif %}

Should it be status=live by default no?

I got an entry template from a structured section.
With prev / next nav links at entry bottom.
But the next sibling is deactivated.

{% set prev = entry.prevSibling %}  
{% set next = entry.nextSibling %}

Should it be status=live by default no?

I got an entry template from a structured section.
With prev / next nav links at entry bottom.
But the next sibling is deactivated.
So the page return is 404 not found !

{% set prev = entry.prevSibling %}  
{% set next = entry.nextSibling %}

{% if prev %}
    <a class="nav-prev nav-left" href="{{ prev.url }}"><&nbsp;{{ prev.title }}</a>
{% endif %}
{% if next %}
    <a class="nav-next nav-right" href="{{ next.url }}">{{ next.title }}&nbsp;></a>
{% endif %}

Should it be status=live by default no?

Source Link
migmaker
  • 982
  • 1
  • 7
  • 19

Entry next sibling return a deactivated entry

I got an entry template from a structured section.
With prev / next nav links at entry bottom.
But the next sibling is deactivated.

{% set prev = entry.prevSibling %}  
{% set next = entry.nextSibling %}

Should it be status=live by default no?