We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44757
    • 7 Posts
    Hi
    Stuck ... I simply cannot get the URL parameters from a page!

    I've added the getUrlParam package.

    This chunk:
    <ul class="button-group">
    <li><a href="[[~4? &typez=`lies`]]" class="small button">Lies</a></li>
    <li><a href="[[~4? &typez=`truth`]]" class="small button">Truth</a></li>
    <li><a href="[[~4? &typez=`verses`]]" class="small button">Verses</a></li>
    </ul>

    ... links to this resource:
    [[!getUrlParam? &name=`typez`]]

    <!-- nothing is displayed -->

    I've tried it with friendly URLs on and off.

    MODX newb seeks assistance!
    Cheers
    narkan

    This question has been answered by narkan. See the first response.

      • 5160
      • 118 Posts
      Never used the getUrlParam Extra but if it helps fastField can do what you need:

      [[!#get.typez]]

      It global arrays including $_GET, $_POST, $_REQUEST, $_SERVER, $_FILES, $_COOKIE and $_SESSION are supported.

      Also fields from MODX Resources such as pagetitle, content, and TVs.
        • 4172
        • 5,888 Posts
        Is the getUrlParam - Extra installed?
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
        • discuss.answer
          • 44757
          • 7 Posts
          Quote from: Bruno17 at Apr 19, 2015, 06:27 AM
          Is the getUrlParam - Extra installed?

          Thought I had - but wasn't installed. D'oh!

          Many thanks for everyone's replies - greatly appreciated wink