Adding information to a pretty URL1 user found helpful
What I would like to do is display that aswww.www.site.com/page/item-one.... However, I do not want to have to create a whole new page call item-one below that page. So, essentiallyhttp://www.site.com/page andhttp://www.site.com/page/item-one will take you to the same page. I will just add some code to the block controller to parse the URL and render accordingly.
Any thoughts as to how this could be accomplished?
you need to supress that via the given parameters and sidestep the whole reflection method arg checking it does right now.
<?php $cID = 100; $c = Page::getByID($cID); $ncID = $c->addCollectionAlias($c); $nc = Page::getByID($ncID); $nc->update(array('cHandle' => 'details','cName' => 'Details')); ?>
The only problem is that when i specify cName (the page name), it changes the original page's name too...not just the alias.
So, my next question is - is it possible to have a page alias that has a different name than the original page?