We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8772
    • 13 Posts
    Hi, Im not a programmer, just a valiant designer so sorry if this is a dumb question. Im learning to create my first snippet and I want to do this:



    In my template:

    [[printBlocks? &region=`right`]]



    Inside the "printBlocks" snippet:

    $res = $modx->db->select("contentid","modx_evo_site_tmplvar_contentvalues","value=$region");



    If I substitute "value=something else" I get a result, no problem. I suspect the problem is Im using the reserved word "right". Ive tried all kinds of ways of escaping it but nothing does the trick. Any ideas? Thanks!
      • 8772
      • 13 Posts
      I just figured it out. Ill post it here in case someone else needs to do it:


      "value=’right’"