We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20765
    • 90 Posts
    myfriendscallmebill Reply #1, 19 years, 6 months ago
    Again, I’ve searched all the documentation I can find, and haven’t been able to determine how to use the Dittl "id parameter, and what it actually does for me.

    I found one topic where a user had multiple Ditto calls on a single page, and used unique IDs to keep these instances from overwriting each other’s placeholders (which is something I’ll need in the website I’m working on), but I didn’t catch the mechanics of how this was accomplished.

    My impression is this is also supposed to let me link output from an instance of Ditto to become input for an instance of Reflect. but I haven’t really found anything that explains the mechanics of this.

    Can anyone give me some hints?
      • 18397
      • 3,250 Posts
      The main purpose for the Ditto ID is to allow URL specific information to be passed to that specific Ditto call. So, since you can’t have more than one ?start= in the url you’d have dittoID_start and dittoID_start where dittoID were unique Ditto ids. This also prevents pagination placeholders from overwriting one another. Thus if you set a Ditto ID and prefix all of the pagination placeholders with it one Ditto call will not overwrite the other.
        • 20765
        • 90 Posts
        myfriendscallmebill Reply #3, 19 years, 6 months ago
        Quote from: Mark at Mar 26, 2007, 04:12 PM

        if you set a Ditto ID and prefix all of the pagination placeholders with it one Ditto call will not overwrite the other.

        Do I understand you correctly that If I have two Ditto calls on the same page with, say, ids of "d1_" and "d2_", I would use pagination placeholders of, say, [+d1_previous+] and [+d2_previous+] to keep each "previous" link attached to the the corresponding Ditto call?
          • 18397
          • 3,250 Posts
          Yes, except you shouldn’t postfix your Ditto IDs with _ as the snippet will do that automatically.
            • 20765
            • 90 Posts
            myfriendscallmebill Reply #5, 19 years, 6 months ago
            Quote from: Mark at Mar 27, 2007, 12:50 AM

            Yes, except you shouldn’t postfix your Ditto IDs with _ as the snippet will do that automatically.

            OK, thank you very much. I’ll try this out.