We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13647
    • 3 Posts
    Hello everybody,

    I try to use a my custom defined template for viewing user details of a particular user. For this, I use the following call:

    [!WebLoginPE? &type=`users` &usersList=`Arctic Boogie DJ’s:arcticUserOuterTpl:arcticUserTpl:internalKey:ASC:webgroup(DJ)` &viewProfileTpl=’arcticViewProfileTpl’ !]

    However, all that shows up in the main content area of my modx page is the following text:

    ’arcticViewProfileTpl’

    Does anyone has a clue how this can be fixed?

    Kind regards,

    Jaap ter Woerds

      • 26435
      • 1,193 Posts
      This is how WebLoginPE works with chunks:

      It takes the string you supplied, in this case ’arcticViewProfileTpl’ and first tries to use $modx->getChunk(’arcticViewProfileTpl’) to load the content. If that fails because the string you supplied is not a chunk (maybe it hasn’t been created yet, or you misspelled), it then checks to see if the string you supplied is a path to a real file. It will try to read that file and get the contents from there. If that fails, it returns the string you provided.

      So, if you are getting ’arcticViewProfileTpl’ returned to the screen, it means that it MODx could not find a chunk with the name you provided.

      -sD-
      Dr. Scotty Delicious DFPA.
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
      • I see in the example you provide that the tpl value is delimited with single quotes, ’arcticViewProfileTpl’ and the value that got returned is the same. If this isn’t just a typo in your post, try it with backticks `arcticViewProfileTpl` instead.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 13647
          • 3 Posts
          HelloQuote from: sottwell at Sep 21, 2007, 02:32 PM

          I see in the example you provide that the tpl value is delimited with single quotes, ’arcticViewProfileTpl’ and the value that got returned is the same. If this isn’t just a typo in your post, try it with backticks `arcticViewProfileTpl` instead.
          Thank you for your replies. I overlooked the fact that I used backquotes in stead of back ticks. My problem is fixed!

          Kind regards and a nice weekend!

          Jaap ter Woerds

            • 26435
            • 1,193 Posts
            Thank you Susan, and glad to hear you got it working Javar.

            -sD-
            Dr. Scotty Delicious, DFPA.
              Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
              All of the above... in no specific order.


              I send pointless little messages