We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10226
    • 412 Posts
    I am having to rebuild a site due to a server crash, now there is one thing I did that I can not remember how it was done.

    Basically it was a TV / Listbox, single select. It had a Common name, and selecting that common name also somehow ’resolved’ to a link (via page id).

    So selecting "choice2" somehow with some magic of ditto would return common name "choice2" and page link id. Now I know the common name was not always the friendly url name for the page so something fancy was going on. I have looked at all my previous posts and don’t see any mention of this. So it was probably something easy that is discussed in another post.

    Now Ditto was the only time I used this, but I do not think it was Ditto specific.
      • 7231
      • 4,205 Posts
      Could this be what you are looking for the TV:
      http://modxcms.com/ddTree-dropdown-Tree-1700.html
        [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]
        • 10226
        • 412 Posts
        nope, thats not what I used... not sure that will work either.

        I think each common name had the page id ’hardcoded’ somehow. I think it was a delimited list, buthow it worked I do not recall smiley I think I will just go with two TV’s for now.

        Thanks smiley
          • 7231
          • 4,205 Posts
          Are you talking about a jump menu type. Where you have on the site a select box that shows a list of docs (list by pagetitle or longtitle). Then when one is selected it will automatically jump to that document?

          If this is what you mean I just built this on my last project 100% in Ditto and javascript.
            [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]
            • 10226
            • 412 Posts
            Hmm... I didn’t bother to install ddTree because the "common name" needed didn’t always match up with any of the built in fields for the target page. I guess I can reserve on of them for this.


            This is totally hypothetical, but relates closely to how I used it...

            lets say while listing products, the specified manufacturer had a link, clicking on the brand name called ditto within an iframe that showed extended info for the brand. Is ddTree what I need?

            I somehow did this with a single TV.

              • 7231
              • 4,205 Posts
              ddTree is for using in the manager. I don’t think it will work as-is in the front end and I don’t think it is what you are needing.

              I somehow did this with a single TV.
              Well, then we should be able to do it again! Time to put the ol’ brain to work grin

              Could this have been a TV that was included in the ditto Tpl as an element that was controled by some JavaScript to show only when clicked. Maybe not an iFrame but a div with scroll bars. Do you know of any online examples that work this way, maybe a visual aid might help.
                [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]
                • 10226
                • 412 Posts
                The iframe had nothing to do with it. It was not java either. It was simply a TV that held two pieces of info. Ditto was able to pull them apart and make a link of "common name" to the target id. "common name" being the choice in the listbox TV.

                Oh well smiley