Get the current structure entry's order How can I get the number of a current entry in a structure? In other words, I'm getting the total number of entries like so:

{% set count = craft.entries.section('projects').total() %}
&lt;h1&gt;{{ count }}&lt;/h1&gt;


But, I'd like to be able to output the number of the current entry in the hierarchy, i.e. something like 1/10. How do I do that?
If you're using a for loop to output the entries you can make use of loop.index which will give you the current iteration of the loop (starting from 1) and loop.length which is the total number of items in the for loop.

So something along the lines of:

{% for entry in craft.entries.section('projects') %}
   {{ entry.title }} - {{ loop.index }} / {{ loop.length }}
{% endfor %}


Or, if you're on a single entry you can use this answer by Marion Newlevant.