ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

tags in javascript

January 20, 2011 4:38am

Subscribe [2]
  • #1 / Jan 20, 2011 4:38am

    transparentb

    24 posts

    I’m trying to use {if logged_in}x{/if} in an inline javascript but it’s not working out. What do I need to do to get this to work?

  • #2 / Jan 20, 2011 10:02am

    Sue Crocker

    26054 posts

    I’d tend to have the whole javascript call inside the if logged_in code, and then have a version for when you aren’t. Have you tried something similar?

    Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

    What code are you trying to get working? This may be a matter for the CodeShare Corner.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases