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.
Comments on IF statement being disregarded
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Fixed for next release.