We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 824
    • 44 Posts
    Hello Peeps,

    I am currently working on a page within a website that needs to display some documents from other areas of the modx site. Each document is a internal job posting. I am looking at using multiple ditto calls to pull the documents out and categorise them. There are 4 different "departments" that jobs can be posted in and each department needs to have their logo above the collection of postings. The display will be something like:


    Vacancies
    Department Logo
    Job 1
    Job 2
    Department 2 Logo
    Job 1


    Now that bit is easy (3 ditto calls, first template which includes a logo and standard templates which do not, pulling data from 3 sub "folders"). Now the complicated bit is where there are no jobs present in either of the departments i need to display one line of text "no vacancies currently availiable" to the users. That is the bit that stumped me.

    Does this make sense? If so Any Ideas on how to best achieve this?


    Al
      • 33337
      • 3,975 Posts
      Use &noResult parameter. eg. &noResult=`no vacancies currently availiable`
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link