We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Quote from: mehdi at May 12, 2008, 02:14 AM

    Thanks everybody for the help, but it still not working...so I think I forget it !

    Anyway perhaps this portion of code will help someone one day...

    Sorry, I misled you a little in my code.

    In the code above the line:
     
    $url = $modx->makeUrl([~id~], '', '', 'full');
    
    should be
    
    $url = $modx->makeUrl([+id+], '', '', 'full');



    Also, this will produce a link to the current page without a call to makeUrl():

    [~[+id+]~]  


    Sorry about that.

    Bob
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 16374
      • 4 Posts
      Hello,

      You can try:
      <a href="[~[*id*]~]">bla bla</a>

      Best regards
      Kristiaan