You are here: Foswiki>Tasks Web>Item1519 (03 Jul 2009, MichaelDaum)Edit Attach

Item1519: natSearchHitOdd and natSearchHitEven not evaluated in search.nat.tmpl

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: NatSkin
Branches:
Reported By: KwangErnLiew
Waiting For:
Last Change By: MichaelDaum
On line 20,
%REPEAT%<div class="natSearchHit %CALC{"$SETM(incr, +1)$IF($ODD($GET(incr)),natSearchHitOdd,natSearchHitEven)"}%">

The CALC is not evaluated. HTML source shows this,

<!-- searchform --><!-- //searchform --> 
<div class="natSearchResult">
<div class="natSearchHit %CALC{"$SETM(incr, +1)$IF($ODD($GET(incr)),natSearchHitOdd,natSearchHitEven)"}%">

<!-- searchhit -->
  <a class="natSearchTarget" href="/view/Main/WebChanges">WebChanges</a>
  <span class="natSearchTargetWeb">in Main </span>
  <div class="natSearchSummary"> ...  </div>
  <div class="natSearchRevision">
    changed on <a href='/rdiff/Main/WebChanges?type=last'>09 Jan 2009 - 12:00</a> by <span class='natSearchAuthor'> <a href="/view/Main/ProjectContributor" title="guest - 24 Apr 2009 - 13:10 - r1.1: Project Contributor Not an actual user of this site, but a person devoting some of his/her time to contribute to the Foswiki Open Source project. ProjectContributor ...">ProjectContributor</a> </span>

  </div>
<!-- //searchit -->
</div><div class="natSearchHit %CALC{"$SETM(incr, +1)$IF($ODD($GET(incr)),natSearchHitOdd,natSearchHitEven)"}%">
<!-- searchhit -->
  <a class="natSearchTarget" href="/view/Main/StyleTests">StyleTests</a>
  <span class="natSearchTargetWeb">in Main </span>
  <div class="natSearchSummary">  Interwiki test! With this Dictionary:word or word This is 1st Header Testing mailto url wrapper email me 2nd Header 3rd Header italics bold jump to break me ...  </div>
  <div class="natSearchRevision">

    changed on <a href='/rdiff/Main/StyleTests?type=last'>08 Apr 2009 - 13:39</a> by <span class='natSearchAuthor'> <a href="/view/Main/ProjectContributor" title="guest - 24 Apr 2009 - 13:10 - r1.1: Project Contributor Not an actual user of this site, but a person devoting some of his/her time to contribute to the Foswiki Open Source project. ProjectContributor ...">ProjectContributor</a> </span>
  </div>
<!-- //searchit -->
</div></div>

REPEAT seems to be the culprit 'cuz removing it works fine - in a way.

-- KwangErnLiew


Works fine here.

-- MichaelDaum - 03 Jul 2009

ItemTemplate edit

Summary natSearchHitOdd and natSearchHitEven not evaluated in search.nat.tmpl
ReportedBy KwangErnLiew
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component NatSkin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r2 - 03 Jul 2009, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy