BBC Home

Explore the BBC


6th May 2015
Accessibility help
Text only
default banner
BBC Homepage

DNA Hub
Knowledge Base
Feedback
Search
Who's Online

h2g2
360
iCan
collective
Book of the Future
Talk Buffy
Get Writing
WW2
Parent's Music Room

Contact Us


Like this page?
Send it to a friend!

 
New visitors: Create your membership
Returning members: Sign in


GuideML: SITEFILTER Tag

The <SITEFILTER> tag lets you tailor your Personal Space to look different on different sites powered by the DNA engine. This might be useful if you are a member of two quite different DNA sites, and want your Space to say different things depending on where your Space is being visited from.

This tag only works in Personal Space Introductions; it will be ignored in articles. As a result this tag does not form part of Approved GuideML.


Syntax and Usage

Optional attributes are shown in italics.

<SITEFILTER EXCLUDE="1">
<SITE NAME="...sitename..."/>
<SITE NAME="...sitename..."/>
...
<CONTENTS>
...content...
</CONTENTS>
</SITEFILTER>

Here's how to use the <SITEFILTER> tag:

  • If EXCLUDE="1" is present then the content will be shown in all DNA sites except for the ones listed in the <SITE> tags. If it is not present, then the content will only be shown in the DNA sites listed.

  • The <SITE> tags each take a ...sitename... argument, giving the name of a DNA site (the name of a DNA site can be found from the URL of that site, which starts with www.bbc.co.uk/dna/sitename/ and should be in lower case). You can include multiple <SITE> tags if you want to filter content over a number of DNA sites.

  • The ...content... section can contain any GuideML that can be used inside the <BODY>...</BODY> section.


Known Issues

You cannot nest SITEFILTER tags. If you do, you will probably get a Server Error when your personal space is viewed in certain sites.


Example One

The following example will display the relevant content in both h2g2 and 360 (but not in other DNA sites).


Example Two

The following example will display the relevant content in all DNA sites except h2g2.


Further Information

Discuss this Article

People have been talking about this Article. Here are the most recent Conversations:
Can't get this to work -can you see my mistake? (Last Posting: Feb 25, 2004)
cult (Last Posting: Nov 2, 2002)
Where's it gone? (Last Posting: Sep 25, 2002)
DNA site list? (Last Posting: Jul 3, 2002)






Article Data
Article ID: A686603 (Help Page)
Written and Researched by:
Mark Moxon

Edited by:
Peta

Date: 28   January   2002

Most of the content on this site is created by our Members, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the BBC. The BBC is not responsible for the content of any external sites referenced. In the event that you consider anything on this page to be in breach of the site's House Rules, please click here to alert our Moderation Team. For any other comments, please start a Conversation below.