Jump to content

EssickAir

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by EssickAir

  1. So here is the set up. We started developing a new a site on a web server. The domain was dev.test.com for example. Well so that was set up on a different directory than "public_html". I'm running a multi-site tool where we are pointing a bunch of domains to that folder. But now we're trying to move the primary domain over, and it apparently has to point to "public_html" so how would one go about moving a processwire site to a different folder without killing the entire thing? 

  2. So I'm trying to use setName as a way to change the name of about 1000 child pages because I need it to be different. I wrote the code an it works because it is changing the URL but not the "name" of the page. What am I doing wrong?
     

    <?php
    foreach($page->children() as $child){
    	$sku = str_replace(' ', '-', strtolower($child->upc));
    	$page->setName($sku);
    }
    ?>

    What am I doing wrong? the UPC changes. but the page name does not.

     

    Thanks

×
×
  • Create New...