Have your component check which page you’re on

Posted: 23 September 2009 in Components, Pages, SitePublisher, Sites, XSL

Sometimes you want to do things a bit differently for sections of the site. Here’s how you would deal with it inside the component:

 <xsl:when test="starts-with(/Properties/Data/External/Parameters/Datum[@Name='iw-ls-page-name'],'private') ">
 <!-- display something private -->
 <!-- display something else -->

The example above will “display something private” when in a page inside sites/acme/private.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s