no_follow links only for ONE category Is this possible?
<IF {CATID} is ##><a href="{TRACKLINKURL}" {EXTERNALLINKS} rel="nofollow">{LINKTITLE}</a><OTHERWISE><a href="{TRACKLINKURL}" {EXTERNALLINKS} >{LINKTITLE}</a></IF>
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on no_follow links only for ONE category
Beginner
Usergroup: Guest
Joined:
Total Topics: 0
Total Comments: 0
Hi
Is it possible to customise links to only affect one (or more...) specific categories?
I have one category where I want to ensure that outgoing links are tagged with the rel="nofollow" attribute. Is there a way to do this?
Thanks.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
I am not sure if conditionals would work in the External links appendage, but you could use an if statement in your template...
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The external links appendage involves things that aren't items in categories, so don't test for a category there, just edit the link bit template (Admin -> Templates -> Manage Templates -> Subtemplates).
Beginner
Usergroup: Guest
Joined:
Total Topics: 0
Total Comments: 0
So just to get this right...
In linkbit.tpl, I add the following (making sure that I add the proper category ID number)?
<IF {CATID} is ##><a href="{TRACKLINKURL}" {EXTERNALLINKS} rel="nofollow">{LINKTITLE}</a><OTHERWISE><a href="{TRACKLINKURL}" {EXTERNALLINKS} >{LINKTITLE}</a></IF>
A couple of questions.
Where exactly will I add this line?
Will this work with rewritten URLs?
Thanks.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
So just to get this right...
In linkbit.tpl, I add the following (making sure that I add the proper category ID number)?
<IF {CATID} is ##><a href="{TRACKLINKURL}" {EXTERNALLINKS} rel="nofollow">{LINKTITLE}</a><OTHERWISE><a href="{TRACKLINKURL}" {EXTERNALLINKS} >{LINKTITLE}</a></IF>
A couple of questions.
Where exactly will I add this line?
Will this work with rewritten URLs?
Thanks.
Yes, that is correct.
Replace
Beginner
Usergroup: Guest
Joined:
Total Topics: 0
Total Comments: 0
Thanks. Much appreciated.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Rewriting makes no difference.