We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Hey doze!
    If the stuff in the repository is part of the core (default install), than the author could simply be "modx", may be plus the version which first incorporated it. Just to differentiate stuff from the core.
    It’s useful to see at a glance if a resource is already present as a part of the core or not.
    And I think that stuff which requires changes in the core-classes should be handled differently, otherwise it may cause a lot of trabble grin
    Well, personally, I wouldn’t put this type of stuff into the repo at all.

    just my $0.02
      • 19986
      • 90 Posts
      You could allow people to post links to the forums from the repos. That way you get the best of both worlds - a nicely organised repository of code which references modifications (along with the discussions that are so often essential to their use). As for things like whether core mods are required or not, I think a simple labelling scheme will suffice (i.e. a few different icons) and perhaps also a difficulty level.

      Btw, I’ve been wondering, why would you want to write &amp instead of & unless you need to validate the code against xhtml or similar? Since snippet code never shows up in the front end why would this matter?
        • 27889
        • 415 Posts
        Sorry, I remove. undecided
          MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
          MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
          • 28218
          • 48 Posts
          I am trying to use this modified snippet to build a menu with items based on TV’s. To bad the core hack doesn’t work, because the file to replace is not include in the latest 0.95 release candidate.

          I only need to filter my menu items based on a selection of items from 1 TV. Could someone please guide me in the right direction??

          Thanks in advance.
            • 19986
            • 90 Posts
            I’ll have a look, but I’ll need to check out 0.9.5 first.

            This will require a few things, which you could possibly do if you don’t want to wait for me:

            1. Figure out what the 0.9.5 equivalent to mutate_content.dynamic.action.php.
            2. Download my modified version of mutate_content.dynamic.action.php from http://modxcms.com/forums/index.php/topic,2612.0.html
            3. Do a diff with the version packaged with modx 0.9.2 to see what I changed (the changes are basic and few).
            4. Apply the same changes to the file identified in step 1.
              • 28218
              • 48 Posts
              Hey Steph,

              Thankls in advance for looking into it.
              When i read the topic where you mention teh core-hack, i understand that the hacks are just minor, and only to support Keywords for weblinks?
              For my need, it would be O.K to just be able to filter menu itmes for their T.V. To bad this gives me a error about a Missing argument for makemap().
              Could you please point me in the right direction??

              Thanks,

              Martijn
                • 19986
                • 90 Posts
                Here’s the modified core code for MODx-095rc3-rev2066 along with the original so you can do a comparison to see what’s changed.

                mutate_content.dynamic.php is the new one.
                mutate_content.dynamic.php.orig is the original.

                It goes in manager/actions/.

                Not sure about your problem with the makemap function, because that’s a function in the modified DropMenu snippet, and one that that Soda previously had before I updated the snippet (see earlier in this topic). Do you have the latest version? If you do, please post it so that I can compare it to mine.
                  • 11975
                  • 2,542 Posts
                  Hi steph,

                  Does your changes to mutate_content.dynamic.php allow to choose any template for weblinks and so attach TV to them ?

                  :-)
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 19986
                    • 90 Posts
                    In short, yes.

                    I simply applied the changes that I’d made to mutate_content.dynamic.action.php from v 0.9.1. The changes, as detailed here http://modxcms.com/forums/index.php/topic,2612.0.html, are as follows:

                    a) Modified some conditions to allow the META Keywords tab and the TVs to show for weblinks in the manager.
                    b) Removed an html hidden field that prevented weblinks being associated with a template.

                    These changes were needed so that weblinks can have META Keywords and template variables associated with them, which is necessary to do the regexp search.

                    I also changed the description field into a textarea, since this allows you to add more content, but this has nothing to do with the modified DropMenu.
                      • 18436
                      • 135 Posts
                      Hi I’m trying to get this snippet to work in 0.9.6.1 It does not work if I pass the following parameters: &tvRegexpField=`devStatus` &tvRegexpString=`(current)`

                      devStatus is defined as as drop down list menu: Current Development==current||Past Development==past

                      I’m in desperate need of help here, if you can’t help perhaps you could explain how I would generate a comma seperated string of doc id’s that match the tv value so I can use wayfinder instead...

                      Thank you in advance.