We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29076
    • 615 Posts
    Thank you, I didn’t know that. smiley Unfortunately there is a lot more I don’t know when it comes to this kind of programming, so I have to ask for a follow up: Where in that little snippet code do I change to get the

    http://lrkh.no/index.php&id=107&style=print

    in stead of

    http://lrkh.no/index.php?id=107?style=print
      I think, thererfor I am! But what I am, and why...?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The index.php?id=xx is automatic; that’s part of any MODx URL created from the [~...~] tags. So when you have a link in your text with a query string, and you are NOT using friendly URLs, after the [~...~] tags you need to use &. If you ARE using friendly URLs, when MODx won’t be generating a URL like index.php?id=xx but like mypage.html, then you use a ? after the [~...~] tags.
        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
        • 29076
        • 615 Posts
        Thank you so much again. My mistake, I didn’t read my codes well enough. cool It was of course in the link:

        <a href="[~[+id+]~]?style=print">print this page</a>

        It should be:

        <a href="[~[+id+]~]&style=print">print this page</a> grin

        And thanks to @ganeshXL for this example. It works perfect.
          I think, thererfor I am! But what I am, and why...?