0

I want my url to be like this:

mysite.com/categories/roofing

I can achieve this by creating a new navigation group called categories and make roofing a child BUT I do not want a new Navigation group. I want to be able to call a specific function by identifying segment 1 while still having the url include segment 2.

I tried doing it in "Page Types" but it will not allow you to create a multi segment slug.

I have the stream module if that helps.

Many Thanks !!

4

1 回答 1

0

这实际上非常简单,有几种方法可以做到。简单的方法是创建一个带有 slug 类别的页面(如果您不希望它存在,您可以稍后使用路由重定向此页面),然后创建一个带有 slug 屋顶的页面。最后,在管理员的页面部分,将屋顶拖到类别下作为子项。

这也可以使用路由来完成。您将使用 config 文件夹创建一个 routes.php 文件,其中包含以下内容:

$route['categories/(:any)'] = '$1';
于 2013-05-31T16:58:10.243 回答