list_subtopics - current_list->count is an array !!
  • Hi,

    normally I do a

    {{ if $gimme->current_list->at_beginning }} there are {{$gimme->current_list->count}} items. {{/if}}

    But with this there is not a number returned but an array!!

            {{list_subtopics}}
                    {{ if $gimme->current_list->at_beginning }}<li><pre>{{$gimme->current_list->count|print_r}} items.</pre></li>{{/if}}
                    <li>{{ $gimme->topic->name }}, {{ $gimme->topic->identifier }}</li>
            {{/list_subtopics}}


  • 1 Comment sorted by
  • You get the real number of subtopics with this statement:

            {{list_subtopics}}
                    {{ if $gimme->current_list->at_beginning }}<li><pre>{{$gimme->current_list->count['count']}} items.</pre></li>{{/if}}
                    <li>{{ $gimme->topic->name }}, {{ $gimme->topic->identifier }}</li>
            {{/list_subtopics}}

    Best regards,
    Thomas.