17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1104 Views |
-
Override URL field

5 December 2007 at 11:13am
I have a client who has a news page with many articles on it. The articles are just short blurbs, so they don't click through to longer versions. Ordinarily, I would have put a little article manager on this one page and have the client create them that way, but they really wanted to see the articles as children of the news page in the site map.
So the problem is, each one of these articles creates its own URL based on the title of the article, when in reality, it can never be viewed except on its parent page. This isn't a problem on the public site because there are no links to these URLs, but in the CMS, the client is hitting the "published site" button at the bottom and Silverstripe dumps them out on a faulty URL.
My question -- can I override the URL in all of these article pages so that they all go to /news/ (their parent) instead of /a-really-ridiculously-long-article-name/?
-
Re: Override URL field

15 December 2007 at 8:39am
Hello UncleCheese
Have a look to this posts:
http://www.silverstripe.com/extending-hacking-silverstripe-forum/flat/526
http://www.silverstripe.com/extending-hacking-silverstripe-forum/flat/704
| 1104 Views | ||
|
Page:
1
|
Go to Top |

