PDA


View Full Version : Links on index only


johnjohn
01-19-2006, 07:33 PM
Hi!

I am trying to add a Link on my portal's index only. The problem is that I have about 4-5 cmps pages and this links is being displayed on those too. I only want it on the index. How can I do this please?

The code I used...:

<if condition="THIS_SCRIPT != 'portal' ">
<a href="http://www.domain.com" target="_new">Link</a>
</if>

Any help would be much appreciated.

Brian
01-19-2006, 08:02 PM
Try "$pages['name'] == 'home'" for your if condition instead.

johnjohn
01-19-2006, 08:33 PM
Thank you Brian! It works great! I love vbcmps! :o