We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7885
    • 40 Posts
    dospuntocero Reply #1, 19 years ago
    hi, i’m trying to make a menu with 2 webpages that needs to be excluded if the user completes certain forms

    if the user completes the form, the data in the database changes from 0 to 1 (contacted =1)

    the menu for the contacted form must disapear if the user has been contacted yet

    i was thinking in a [wayfinder? &startid=`2` &ExcludeDocs=`@EVAL return if(contacted=1)doc to exclude`], but id doesn’t work...

    can anyone pointme to the right direction???

    thanks in advance!
      visit us at www.dospuntocero.cl
      • 21496
      • 225 Posts
      nightsignals Reply #2, 19 years ago
      Is what you have in your @EVAL statement supposed to be real code, or just shorthand for a function you wrote? Because in the way you have it, it’s doing nothing. You need some php function to look in the database and return the docs id you want to exclude.
        René
        • 6726
        • 7,075 Posts
        Never tested it, but maybe use PHx conditionnal operators in your Wayfinder templates or even in the parameter itself ?
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id