We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47562
    • 113 Posts
    I have a situation where it would be quite nice to have the default value for one of the TVs in a MigX aggregate be based on what is entered for another TV in that same aggregate. So basically, I'd like to fire off a snippet when something has been entered for the one TV (which I'm pretty sure will be the result of a cut/paste performed by the client). Is this possible? And if so, what would that look like? I'm not sure if there's even an event to tie into here...

    Thanks much for any information.
      • 4172
      • 5,888 Posts
      its possible to create custom-TV-input-types, which can do something like that.
      As an example there is the dynamic-dropdown-TV
      http://modx.com/extras/package/dynamicdropdowntv

      I think, it should also be possble to use the description_is_code - option within the MIGX-configurator.

      The code, which you are adding to the description-field is the code used by that input-area, then.
      You can be very creative there.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 47562
        • 113 Posts
        Thanks Bruno.

        Actually, thinking about it a bit more, I'd like to simplify things even further for the client. (And please, feel free to let me know if you think I'm being too creative here...).

        Here's the situation: client has a blog, separate from the site being constructed. I'm gonna use getFeed to present the latest entries in the blog. Unfortunately, the image associated with a blog entry is not included in the feed, so I was thinking of having a MigX with two TVs, "id" and "image", which would make the necessary association. Would it be possible to auto-generate these entries (via a cron), such that no manual entry is necessary? Know of any examples of someone doing such a thing, that I might look at for inspiration?

        Cheers!