Search

Hi,

still working on my first symphony project (converting from another cms) and am facing another two problems:

How do I show/hide parts of the template depending on the users login status?

-> on login hide “block1” and show “block2”

How do I change navigation on login?

My navigation looks like this #Home #Backstage #Contact

-> logged out #Backstage points to href=”#” and a jquery loginbox drops in

-> logged in #Backstage points to my members area

Is this possible with symphony?

Thanks for any help!

panic

Have a look at the default ensemble. There’s a login info event in there that you can use.

How do I show/hide parts of the template depending on the users login status?

When you say “user” do you mean an author logged-in to Symphony? If so, add ?debug to your page, look at the “Params” list and you should see their username in a parameter you can include in an <xsl:if...>. That, and if you still have the original Symphony install it comes with an Event called “Login Info” which will put info about the current author into your page XML.

When you say “user” do you mean an author logged-in to Symphony?

I mean frontend member

What membership system are you using?

I am using the “new official” members extension… figured out how to use <xsl:if…> and events… thanks

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