checking for sorted pages
Tim Stalker <[email protected]>
| Newsgroups | gmane.comp.cms.xaraya.user |
|---|---|
| Message-ID | <[email protected]> |
I'm wondering if anyone can help me think of a way to add a noindex metatag to pages with the sort=hits, title, ratings, etc. in the url. I don't need these pages in any search engine index. So far I've thought to use xarservergetcurrenturl and then compare that value to something containing the sort parameters. I don't think Xaraya has a "like" operator in the xar:if conditionals, unless I'm mistaken. It would be cool to test the current page's url against some thing like "if current url contains "sort=hits", then add the meta tag." To do this from the theme's header block would be ideal, but I can't figure out how to check to see if a sorted page can have the tag added to it. Any help would be most appreciated. -- Tim Stalker <a href="http://www.wiseheat.com">test</a>