catch all containers for modx 0.9.6.3


/ Published in: PHP
Save to your folder(s)

Add to document.parser.class.inc.php on line 1094


Copy this code and paste it in your HTML
  1. /* MOD by Simon .. when alias is not in container open the container*/
  2.  
  3. $alias = substr($alias,0,strrpos($alias,"/"));
  4. if (array_key_exists($alias, $this->documentListing)) {
  5. $this->documentIdentifier= $this->documentListing[$alias];
  6. }else {
  7. $this->sendErrorPage();
  8. }
  9. //$this->sendErrorPage();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.