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

    I’ve activated PHx and EasyEvent doesn’t work anymore.
    chunk which works with PHx off:
    [+miniCalPlaceholder+]
    
    [+listDetailsPlaceholder+][+missingEventsMessagePlaceholder+]
    [!EasyEvents_ListMini? &nodes=`103`!] 


    chunk, which I thought it could work:
    [+phx:input=`[+miniCalPlaceholder+]`+]
    
    [+phx:input=`[+listDetailsPlaceholder+]`+]
    [+phx:input=`[+missingEventsMessagePlaceholder+]`+]
    
    [+phx:input=`[!EasyEvents_ListMini? &nodes=`69`!]`+] 


    I really don’t know what I’m doing undecided
      • 4310
      • 2,310 Posts
      IIRC EasyEvents & PHX don’t play together at all sad
        • 7127
        • 28 Posts
        Oh my god,

        is there any calendar which I could use then?

        Or could I deactivate PHx in one document?
          • 4310
          • 2,310 Posts
          This is untested but you could replace the existing PHX Plugin code with :
          /*####
          
          #
          
          #	Name: PHx (Placeholders Xtended)
          
          #	Version: 2.1.3
          
          #	Author: Armand "bS" Pondman ([email protected])
          
          #	Date: July 13, 2007
          
          #
          
          ####*/
          
          
          
          include_once $modx->config['rb_base_dir'] . "plugins/phx/phx.parser.class.inc.php";
          
          $e = &$modx->Event;
          
          $PHx = new PHxParser($phxdebug,$phxmaxpass);
          
          switch($e->name) {
          
          	case 'OnParseDocument':
          if ($modx->documentIdentifier != 15) {
          		$PHx->OnParseDocument();
          }
          		break;
          
          }

          Where 15 is the ID of your Easy Events calendar page.
          I did have something similar working on a site, but eventually Easy Events was dropped so I reverted the plugin code back to the original
            • 7127
            • 28 Posts
            Thank you, it seem to work, I’ve got to do several test.
              • 4310
              • 2,310 Posts
              If you need to have several Easy Events pages try :
              /*####
              
              #
              
              #	Name: PHx (Placeholders Xtended)
              
              #	Version: 2.1.3
              
              #	Author: Armand "bS" Pondman ([email protected])
              
              #	Date: July 13, 2007
              
              #
              
              ####*/
              
              
              
              include_once $modx->config['rb_base_dir'] . "plugins/phx/phx.parser.class.inc.php";
              
              $e = &$modx->Event;
              
              $PHx = new PHxParser($phxdebug,$phxmaxpass);
              
              switch($e->name) {
              
              	case 'OnParseDocument':
              if ($modx->documentObject['template'] != 3) {
              		$PHx->OnParseDocument();
              }
              		break;
              
              }

              Where 3 is the ID of the template being used for the Easy Events pages.
                • 20413
                • 2,877 Posts
                bunk, this is AWESOME!!! cool
                  @hawproductions | http://mrhaw.com/

                  Infograph: MODX Advanced Install in 7 steps:
                  http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                  Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                  http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                  • 4310
                  • 2,310 Posts
                  That’s overly generous for one line of code laugh
                    • 2661
                    • 53 Posts
                    Will this work with the known issue with PHx and Pagination?
                      • 4310
                      • 2,310 Posts
                      I didn’t know there was an issue.
                      Is this with Ditto pagination & PHx ?
                      If so then it should work if you use it for either the template or pages with your Ditto output.