-
- 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
-
- 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.
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.
-
- 1,193 Posts
Thank you Susan, and glad to hear you got it working Javar.
-sD-
Dr. Scotty Delicious, DFPA.