Search

Hello,
I have a member login page being pulled by the navigation datasource automatically. I would like to show the page link visible only if the user is not logged in. How can I filter the navigation DS conditionally?

Thanks!

I would simply filter it at the XSLT level. Add an <xsl:if> conditional where you output the link markup in your navigation.xsl or equivalent template. This is how I've always approached this in the past, works fine.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details