Copying pages

Permalink
I m building a portfolio site for models, I have need for the same 3 pages under each model and have tried copying but the copied files all keep the old name in the address bar. is their an easy way to create a group of pages to add over and ver again with a new parent name each time?

 
frz replied on at Permalink Reply
frz
I would make a page with the models name, then under it i would keep a standard set of names:
-Models
--Model 1
---pictures
---bio
---schedule
--Model 2
---pictures
---bio
---schedule

then when i was adding a new model I would just copy model 2 to the models page, rename it model 3, and good to go.
to keep this especially easy I would have a "example model" set that i hid from public view but always copied from so i wouldn't have to cleanup data.

if you want to automate this process, you could do so with a day or two of coding and some single pages.
ScottC replied on at Permalink Reply
ScottC
the way to do it sorta off the top of my head psuedo code is:

$ModelParent = Page::getByPath('/models');
$modelPage = array('cName' => $modelName);
$ModelParent->add($modelPageType, $modelPage);

replicate as needed. this is certainly a day or two job depending on how you want to store model as in hot chicks or guys? data etc.
sallott replied on at Permalink Reply
but you need to rename the page plus put what ever you want the url to be as well then it all sislays properly