Set url slug on page creation

Hi All,

I am creating pages using the standard method below and i have a form field where the user can insert the url slug. I have looked at the api docs but cannot see anywhere how to set the url slug.

$data = array('ctID' =>$ct->getCollectionTypeID(), 'cDescription' => $this->post('boatOverview'), 'cName' => $this->post('boatName'));

Any guidance would be appreciated i have tried adding 'urlSlug' => $this->post('urlfield'));


View Replies:
goutnet replied on at Permalink Reply
AFAIK the slug is computed from the Page Handle I think, you should have a look at it.