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.

How do I display exp:mailinglist:form to visitors? but ...

May 19, 2012 2:34pm

Subscribe [1]
  • #1 / May 19, 2012 2:34pm

    OrganizedFellow

    435 posts

    At the top of our site. We have a ‘Join our Mailing List’ form.
    Incredibly simple: enter email address, ajax, display brief message ‘Thanks for joining! Check your inbox for details!’. The rest of the site content slide up.

    My client wants to display the Join form only to those visitors who have NOT joined the mailing list, so cookies would be involved.
    And to not display if they have joined.

    I’ve scoured the EE Docs, and can’t find a suitable else:if statement.
    I thought I had seen it before in previous version?


    Can someone recommend a reliable method of doing this?

  • #2 / May 20, 2012 3:43pm

    OrganizedFellow

    435 posts

    -SOLVED-

    -SOLUTION-
    I surrounded my containing DIV with a [IF] statement.

    {if email == ""}
    [Display Mailinglist Form]
    {if:else}{/if}

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

ExpressionEngine News!

#eecms, #events, #releases