Jump to content

jor

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

jor's Achievements

Newbie

Newbie (2/6)

3

Reputation

  1. I've created an issue on this in the processwire-issues repo: https://github.com/processwire/processwire-issues/issues/1330
  2. Vielen Dank, Bernhard! Now I've put that into my ready.php and it works great. Just one thing occurred that is Umlauts are html-encoded. I.e. when having this URL: https://domain.com/processwire/tools/ourmodule?Param1=Fünf after the login it is transformed to: https://domain.com/processwire/tools/ourmodule?Param1=Fünf which essentially looses part of the value because & of course is the URL param separator. I've tracked this down into the ProcessLogin module and it seems that this line should NOT be: if(!is_int($value)) $value = $this->wire('sanitizer')->entities($value); but rather: if(!is_int($value)) $value = rawurlencode($value); because the URL string is manually built by concatenation. After fixing this in the Core our links now work great. Thanks again for your help, Bernhard. What do we do about this bug (?) in the Core module?
  3. This is getting into the right direction ? But how can this be used to add specific parameters? Does this only work for modules inheriting ProcessLogin?
  4. I see, yes we thought of this as well but wanted to avoid it because the site owner gets these emails in order to decide whether he wants to perform a given task. If so he can click on the link and has a prefilled "action form" in the backend. In case not we'd have a leftover "ticket" which he'd have to manually delete (instead of just deleting the email). But how comes that the "id" parameter is preserved? Whitelisting I suppose, so wouldn't it be possible to add more keys to whitelist?
  5. Hallo Bernhard, danke für die Antwort! ? Unfortunately our URL params are dynamic, not the keys but the values. Any idea how to do that?
  6. Hi there, I followed this helpful tutorial to create a custom admin process: https://processwire.com/blog/posts/building-custom-admin-pages-with-process-modules/ We use this to perform certain tasks on our website and the site owner gets emails containing a link to the custom admin page including some URL parameters. This works fine if the site owner is already logged in to the backend. But if he has to re-login then all URL parameters are lost. I.e. we send him links like this: https://www.domain.com/processwire/tools/ourmodule/?Param1=Lorem&Param2=Ipsum I've seen the URL params are preserved when linking a regular page (...?id=123), but what to we need to do to have this for our custom Process as well? Thanks in advance! jor
  7. Hi there, thanks for providing the Leaflet Map Marker module - very useful! One thing I couldn't figure though is: how can I set NO default address to a field? I need to have the map as an optional field for a given template. Thanks for any advice. jor
×
×
  • Create New...