Hi guys,
I'm trying to do something that, I think, should be simple: I want to number the search results from a tag search. For example, if a page has 15 results, I want the first result to have a heading like "#1" next to it and the last to have "#15" (naturally).
At the moment, the framework for my search results looks like this:
<mt:SearchResults><h1> [INDEX OF SEARCH RESULT HERE] </h1>
<$mt:Include module="Entry Detail"$>
</mt:SearchResults>
I thought the container worked like a loop so I tried making a variable named "count" that incremented by one for each iteration, but that didn't work (it only did the incrementing once, so every search result had the same number next to it).
I also tried putting a For loop inside , which did produce the correct headings, but it showed ALL of the headings next to each search result instead of numbering them separately.
Any ideas how I could do it?
Thanks.
Reported on Movable Type 4.25
Actually, I've figured it out: I just put my operators in the wrong place.
Please ignore, thanks :)