EssickAir
-
Posts
20 -
Joined
-
Last visited
Posts posted by EssickAir
-
-
15 minutes ago, bernhard said:
Do you save the page after changing its name?
OMG you're a genius. I don't know how I missed that, but thanks. I just needed to run $child->save();
thanks
- 1
-
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
-
I know this is an old thread, but I could use some help trying to get the same result if anyone on here has any suggestions.
Moving site to public_html
in General Support
Posted
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?