Home  Extras  MODx Add-Ons  exinDocs

exinDocs



Forums Support Thread Votes: 11
Tags: snippet, editing, conditions
Submitted: Aug 17, 2008
Released: Aug 17, 2008
Downloads: 168
License: GPL - GNU Public
Package Website


exinDocs 0.1 | Author: Mazso

Works with the following Version(s): 0.9.5 | 0.9.6 | Revolution-2.0.0

<strong>0.1</strong> Returns "true" if the document has the ID of one of several IDs


Download


Description

exinDocs works together with PHx and can check if the ID of a single document is equal to one of any given numbers of IDs in the exinDoc snippet. In this case it will return "true" otherwise "false"

Instructions

Installation

In the MODx manager, go to Resources > Snippets and create new snippet. Name it "exinDoc", copy and paste the contents of exinDoc.snippet.txt, and save it.

Example Usage

If you want to exclude documents 1, 3, 5 and 7 from beeing indexed and followed by search engines just type this in the head of your page.

+phx:if=`exinDocs? &exin=`1,3,5,7``:is=`true`:then=`<meta name="robots" content="noindex, nofollow, noarchive, noimageindex" />`:else=`<meta name="robots" content="index, follow, noarchive, noimageindex" />`+




Sub-Packages



Previous Releases



Comments

Please login to comment.

Close ]


 
 
 

Contact Us | Team Blog | FAQ | Site Credits

© 2005-2009 the MODx CMS project. All rights reserved. Privacy Policy | Terms of Service