We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48853
    • 12 Posts
    I have construction:
    [[!getPage? 
    &element=`getResources` 
    &limit=`10` 
    &tpl=`vacancy_tpl` 
    &parents=`[[*id]]` 
    &includeContent=`1` 
    &includeTVs=`1` 
    &showHidden=`1` 
    &pageFirstTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">First</a></li>` 
    &pageLastTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">Last</a></li>
    `]]

    How i can output massage or chunk if no results for getPage?
      • 41155
      • 13 Posts
      Quote from: denis_ at Sep 19, 2014, 12:06 PM
      How i can output massage or chunk if no results for getPage?

      e.g.

      [[!getPage?
      &element=`getResources`
      &limit=`10`
      &tpl=`vacancy_tpl`
      &parents=`[[*id]]`
      &includeContent=`1`
      &includeTVs=`1`
      &showHidden=`1`
      &pageFirstTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">First</a></li>`
      &pageLastTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">Last</a></li>
      &toPlaceholder=`my_result`
      `]]
      
      [[!+my_result:default=`[[$my_empty_chunk]]`]]
      
      
        Weitblick Internetwerkstatt, Germany
        www.weitblick.net
        • 48853
        • 12 Posts
        Quote from: erhard at Sep 19, 2014, 12:24 PM
        Quote from: denis_ at Sep 19, 2014, 12:06 PM
        How i can output massage or chunk if no results for getPage?
        Erhard, thank you very much for your answer! This work just superb =)