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

    I have a strange behavior here.
    When I call a chunck or enter a Text into
    $noResults = 'Zur Zeit sind keine Info-Blätter abgelegt!';

    it is being displayed properly. But when I try to ad a paragraph to it like
    $noResults = '@CODE:<p>Zur Zeit sind keine Info-Blätter abgelegt!'</p>;

    it is not being displayed. What could the reason be for this behavior?

    thanks in advance
      • 16278
      • 928 Posts
      If the code you posted was copy/pasted, it’s invalid PHP (apostrophe in the wrong place).
      Also, the snippet comments don’t say anything about using @CODE:
      Param: noResults
      Purpose:
      Text or chunk to display when there are no results

      Options:
      Any valid chunk name or text

      Default:
      [LANG]
      Maybe try it without the @CODE: as well?
      $noResults = '<p>Zur Zeit sind keine Info-Blätter abgelegt!</p>';
      KP
        • 2901
        • 277 Posts
        kp52

        this did the trick. I did not try it because somehow this does not make sense to me. once you need to use @CODE: once not!?

        However thanks