On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • I have two placeholders: content and a TV called ingresPicture.

    What I have to do:

    If content is Empty AND ingresPicture is Empty THAN chunk1
    If content is NOT Empty AND ingresPicture is Empty THAN chunk2
    If content is Empty AND ingresPicture is NOT Empty THAN chunk3
    If content is NOT Empty AND ingresPicture is NOT Empty THAN chunk4


    I hva tried different combination of len:gt=`0`:then... else and isEmpty in different nested variations, but I can’t get it to work.

    How can this best be done? (The goal is to make a Read more-link if there is Content, and a DIV for the ingresPicture if it’s there)

    Thanks.
      I think, thererfor I am! But what I am, and why...?
    • Hi,

      Try with

      [+phx:if=`[*content*]`:is=``:and:if=`[* ingresPicture*]`:is=``:then=`
      {{chunk1}}`:else:if=`[*content*]`:isnot=``:and:if=`[*ingresPicture*]`:is=``:then=`
      {{chunk2}}`+]

      and so on for
      If content is Empty AND ingresPicture is NOT Empty THAN chunk3
      If content is NOT Empty AND ingresPicture is NOT Empty THAN chunk4
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • Thank you very much. I’ll try that, and give a feeback on the result.
          I think, thererfor I am! But what I am, and why...?
        • Not sure that it will be work. Try this

          [*content:is=``:then=`
          [*ingresPicture:is=``:then=`
          {{CHUNK1}}
          `:else=`
          {{CHUNK2}}
          `*]
          `:else=`
          [*ingresPicture:is=``:then=`
          {{CHUNK3}}
          `:else=`
          {{CHUNK4}}
          `*]
          `*]
            DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

            Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

            [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
          • Thanks Metaller, that did the trick. laugh Beautyfull! Heliotrope’s solution didn’t work, but thanks for trying anyway.
              I think, thererfor I am! But what I am, and why...?
            • Metaller, you rock !