Webmastersite.net
Register Log In

IF statement being disregarded
on pages other than main

Comments on IF statement being disregarded

hai
Forum Regular

Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA

Total Topics: 94
Total Comments: 339
hai
Posted May 11, 2009 - 12:53 PM:

I have the following code in my sitemap template -

<ul>
<!-- BEGIN MAP LINE -->
<IF {THISMEMBERISADMIN}>
<!-- BEGIN AFFILIATE -->
<li><a href="{CATURL}" class="categoryname">{CATNAME}</a> {CATHASNEW} {CATADMIN}</li>
<!-- END AFFILIATE -->
<ELSE>
</IF>
<!-- BEGIN REGULAR -->
<li><a href="{CATURL}" class="categoryname">{CATNAME}</a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}</li>
<!-- END REGULAR -->
<!-- END MAP LINE -->
</ul>

I am using the sitemap as an [insertfile] in the wrapper. It works perfectly on the main page, but on any other page of the site it lists all the AFFILIATE categories to guests.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 11, 2009 - 11:11 PM:

Fixed for next release.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.