We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7371
    • 22 Posts
    Hi helpers...

    I’ve got a question, well a problem really!!

    Is is possible to pass a URL variable to a single modx page that then displays the correct page details based on that variable.

    For example:

    Page ID 22, 23, 24, 25 all have template variable showing job descriptions

    I would like to show specific details i.e. (job title)(job description) of any given ID by sending it to a single page, ie. http://www.mypage.co.uk/vacancies.html?jobid=22

    This vacancy page would then see the URL Variable of 22 and collect that pages information to display.

    REALLY HARD TO EXPLAIN SORRY!!


    The reason i need this is because i have a website that lists jobs, i now need a mobile version, i can ditto the job listing out but when you click to see the job details it goes to the main webpage and i need to display that jobs details in a mobile template.

    Any help would really be appreciated.

    Thanks
      • 10449
      • 956 Posts
        • 7371
        • 22 Posts
        Hi ganeshXL,


        Thanks for those links, I stumbled across those earlier and have spend a few hrs trying to figure it out but at the moment i’m just banging my head against the wall with it, just not making sense to me, then again none of it does to start with sad

        Do you know of anywhere that has some good working examples?

        I get the URL being passed, I don’t get what i need to put on my vacancies page to get it to see the URL para, get the correct page ID and show fields that i require such as [[jobtitle]] - [[jobdescription]] etc..

        I’m not new to modx but very new to using this side of it?

        Thanks again.
          • 7371
          • 22 Posts
          Sorry to bump this but has anyone got any working examples or clearer tutorials on how to use Ditto Parameters to a URL?

          I need to populate a page with another page ID’s template variables i.e. show job details from ID25 with a new page which has the ID 55.

          Thanks
            • 11139
            • 34 Posts
            I’m arriving a bit late here, but if you’re still searching I may have the answer. I’ve been writing notes on Ditto as I explore it. The notes are very incomplete and have not been checked by anybody else, so please be aware they may contain mistakes. But all the examples worked for me. The present version of the notes is here:

            http://thomasgreenwebsites.co.uk/modxnotes/Ditto.pdf

            Take a look at Example 19 which I think addresses your problem.

            Hope this helps.

            Thomas