BBC Home

Explore the BBC

h2g2
8th January 2010
Accessibility help
Text only

Guide ID: A1098867 (Help Page)

Help Page


SEARCH h2g2
Edited Entries only
Search h2g2Advanced Search


New visitors: Create your membership
Returning members: Sign in
BBC Homepage
The Guide to Life, The Universe and Everything.


Created: 4th July 2003
GuideML: SITEFILTER Tag
Contact Us


Like this page?
Send it to a friend!

 

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



Clip/Bookmark this page
This article has not been bookmarked.
ENTRY DATA
Edited by:

The h2g2 Editors



CONVERSATION TOPICS FOR THIS ENTRY:

Start a new conversation

People have been talking about this Guide Entry. Here are the most recent Conversations:

TITLE
LATEST POST
If knowledge is broadcasted why do we presume it's the gospel truth.Oct 20, 2005




Disclaimer

Most of the content on h2g2 is created by h2g2's Researchers, 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. For any other comments, please start a Conversation above.




About the BBC | Help | Terms of Use | Privacy & Cookies Policy