We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    I know it’s no big deal but I was trying to recreate the blogger/wordpress type of feel a little close and got tired on not having a permalink for the title of my topics. At any rate here it is.

    // --------------------
    // Snippet: PermaLink
    // --------------------
    // Version: 1.0
    // Date: 2005.06.25
    // [email protected]
    //
    // This snippet was designed to show the
    // link for the current page.
    //
    
    // ***********************************
    // END CONFIG SETTINGS
    // THE REST SHOULD TAKE CARE OF ITSELF
    // ***********************************
       $PermaLink = '<a href="[~'.$modx->documentObject["id"].'~]" rel="bookmark" title="Permanent Link to '.$modx->documentObject["pagetitle"].'">'.$modx->documentObject["pagetitle"].'</a>';
    
      return ($PermaLink);
    
      • 33337
      • 3,975 Posts
      Thanks for the nice snippet !

      Usefull for bloggers ! smiley

      Regards,

      zi
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 22097
        • 37 Posts
        The snippet references $etomite. What is that? laugh
        No, just kidding. As many people I too started with phase (later to be known as etomite). But this should really be $modx (looks cooler in code too).
          • 33337
          • 3,975 Posts
          hmmm....

          I think you should see "modx" now laugh laugh

          Regards,

          zi
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link