We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3177
    • 137 Posts
    Hello,

    Currently the input types in a Template Variable include the option URL. That gives the content-editor the option to include a URL and the protocol (http, https, etc).

    But it would be convenient is there is also an input type called "Link" or "Internal Link".

    There is an option to enter an image (which starts the popup box for images), a file (which start the popup box for files). Why not add the third option, the popup box for links.

    Hope to find others with the same requirement.

    Thanks,

    Bert

      • 27330
      • 884 Posts
      if you don’t want the https/http options why not simple text field tv to be used for "Link"?
        • 33337
        • 3,975 Posts
        I think Bert is asking for having a popup with doc tree to click on the internal document, which then places link in [~xyz~] format.

        Thats a nice thought, be sure to register it in JIRA as feature request.
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 27330
          • 884 Posts
          isn’t this one does it?
          http://modxcms.com/extras/package/90
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            extra page really needs a new method to manage the repositories.
              Rico
              Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
              MODx is great, but knowing how to use it well makes it perfect!

              www.virtudraft.com

              Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

              Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

              Maintainter/contributor of Babel

              Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
              • 3177
              • 137 Posts
              @ZI:
              Yes, that’s exactly what I hav ein mind. I have workedaround it by letting the content manager enter a number. The number should be the document nummer. This number is read by the snippet and with a $modx->makeUrl the url is created.
              But it would be nice to have a popup, just like the one you get when choosing Image as the input type.

              I’ll put it in JIRA. Although it can’t be that hard to write it myself. But it would be nice if it is included in the official distribution.

              @sinbad:
              Ok, thanks. I will look into that.
                • 3749
                • 24,544 Posts
                Maybe I’m misunderstanding you, but if you use a link tag [~nn~], (where nn is the document ID) MODx will make the link for you so you won’t need makeURL().
                  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
                  • 3177
                  • 137 Posts
                  Quote from: BobRay at Jan 18, 2010, 03:54 PM

                  Maybe I’m misunderstanding you, but if you use a link tag [~nn~], (where nn is the document ID) MODx will make the link for you so you won’t need makeURL().
                  It’s outside the scope of the question here, but I clarify why I do this:
                  The Template Variable is picked up by a snippet (PHP code). Probably my inexperience with MODX, but I thought that PHP code in Snippets is the last stage of translation. Same reason why you can’t put a chunk-call in a snippet. So, I always take the safe-way and use the API function instead.
                  I know that Revlotution solves this since it is recursive until all MODX-tags are solved.