-
☆ A M B ☆
- 24,524 Posts
It is, Ryan; names were changed to protect the innocent.
-
☆ A M B ☆
- 24,524 Posts
Ah, I see what you mean. No, I hard-coded a loop for the specific customization. But you are correct, it could be done that way easily enough. Or even use a chunk or TV in the snippet option for the list might be better.
-
MODX Staff
- 12,272 Posts
I’d tend to put the priority as an additional parameter, or even better, pull the prefix the placeholder with ’sn’ like [+snMyPlaceholder+] to mean explicitly pull the one from the session and [+MyPlacehoder+] to get the one from the POST (in the event there were two)... just a thought... I don’t know really! lol
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
I like that idea, Ryan, although in my case I have custom values stored in the session, in a sub-array, and the code loops through the sub-array. So it would be a little complicated, needing logic to know to loop if the value given is itself an array. Interesting.
I’m not sure about the security implications of using session variables inside a form but I would say that session variables should take precedence over post variables.
maybe add email as tag i search for email in repository but it did not come up