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

    I want to server a specific URL for a blog feed (to feedburner) based on the author of a blog. I have the following PHx call:

    [+phx:if=`[*blogauthor*]`:is=`Robert Smith`:then=`{{rssrob}}`+]


    I know that the value of the TV [*blogauthor*] is being passed to the document since the values renders on the page (i.e. By Robert Smith). Nothing happens with the PHx statement above and as I’m just getting into the PHx I have the feeling I’m missing something simple. I need it to render out the HTML in the chunk {{rssrob}}

      • 33337
      • 3,975 Posts
      Is your document cached?

      Try with altering the cache setting and see what happens.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
      • Quote from: zi at Dec 03, 2009, 07:07 PM

        Is your document cached?

        Try with altering the cache setting and see what happens.

        It’s not cached. It has Ditto pagination so you have to follow strict rules when using PHx and pagination.
        I’ve abandoned this approach in favour of a snippet that pulls the TV value and a switch statement to output the appropriate subscription URL.