We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    Cool cool

    Thanks for the update smiley

      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l'outil id
      • 14050
      • 788 Posts
      It has been updated. Strongly recommend this update as it is more customizable. When I have more time I will add in the ability to narrow the scope post parsing. Features, suggestions, or coding additions still welcome.
        Jesse R.
        Consider trying something new and extraordinary.
        Illinois Wine

        Have you considered donating to MODx lately?
        Donate now. Every contribution helps.
        • 18862
        • 70 Posts
        I’m probably being dense or something, but can anyone shed some light on what this looks like in practice?

        My understanding is that with this plugin I can simply type in a name that is the same as the pagetitle in the content of a child document and then it will automatically create a link for it. Is that right?

        I have a document structure as follows (document IDs in parenthesis):

        Welcome blog(60)
        -Blog1(61)
        -Blog2 (62)
        -Blog3 (63)

        The pagetitle for each of these is the same as the menu title.

        So in the configuration for the plugin I put:

        Parents = 60
        Match Source = pagetitle
        Document Objects = pagetitle
        Search Type = 0

        I also checked the system event for "onLoadWebDocument"

        I expected that if I then put "Blog1" or "Blog2" or "Blog3" anywhere in the content for "Welcome Blog (60)" then it should automatically create a link to that child document. ie: Blog1 -> 61, Blog2 -> 62, Blog3 -> 63.

        Am I way off here as to what this thing does? If not, what am I missing? The links aren’t working as I would expect.

        Thanks!! smiley
          • 14050
          • 788 Posts
          You are exactly right on your understanding of this snippet. Your configuration is likely a little off. You have this:

          Parents = 60
          Match Source = pagetitle
          Document Objects = pagetitle
          Search Type = 0
          


          You have Document Objects set to ’pagetitle.’ Essentially, you are telling this plugin to only search the pagetitle for those keywords and to not look into any other area of the document (i.e., the content field). Simply change your configuration to the following, and you will likely get what you were looking for:

          Parents = 60
          Match Source = pagetitle
          Document Objects = content
          Search Type = 0
          
            Jesse R.
            Consider trying something new and extraordinary.
            Illinois Wine

            Have you considered donating to MODx lately?
            Donate now. Every contribution helps.
            • 7231
            • 4,205 Posts
            This snippet is cool, I wonder how I missed it earlier.
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don't know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 14050
              • 788 Posts
              I don’t think you missed it entirely, you just didn’t manage to move from the development thread to the repository thread tongue

              http://modxcms.com/forums/index.php/topic,22249.msg138555.html#msg138555

              Regardless, I am glad some people have found this useful and welcome any code additions or other feature suggestions. I hope to continue to polish this.
                Jesse R.
                Consider trying something new and extraordinary.
                Illinois Wine

                Have you considered donating to MODx lately?
                Donate now. Every contribution helps.
                • 7231
                • 4,205 Posts
                Quote from: Jesse at Feb 15, 2008, 05:02 PM

                I don’t think you missed it entirely, you just didn’t manage to move from the development thread to the repository thread tongue
                LOL grin I though it sounded like a good idea.
                  [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                  Something is happening here, but you don't know what it is.
                  Do you, Mr. Jones? - [bob dylan]
                  • 32646
                  • 87 Posts
                  Very nice.

                  I did notice that it inserted a link within a link, so that might be something to watch out for. I already had a phrase linked:

                  <a href="somewhere">This is my phrase</a>


                  and it did this

                  <a href="somewhere">This is my <a href="phrase">phrase</a></a>


                  I don’t think nested links validate, do they? grin
                    Just learning the ropes.
                    • 14050
                    • 788 Posts
                    Did you try any of the search methods? I bet you are using the "aggressive" one :p But this is something that is known and I doubt it is possible I will code the logic to account for all the possible permutations.
                      Jesse R.
                      Consider trying something new and extraordinary.
                      Illinois Wine

                      Have you considered donating to MODx lately?
                      Donate now. Every contribution helps.
                      • 32646
                      • 87 Posts
                      You are right, of course. laugh

                      I changed the search type to 1 and that fixed the problem.

                      Thanks
                        Just learning the ropes.