im guessing this is involved some how, but its beyond my tiny mind array( 'name' => 'display_entry', 'parse_regex' => '#^(?P<slug>[^/]+)(?:/page/(?P<page>\d+))?/?$#i', 'build_str' => '{$slug}(/page/{$page})', 'handler' => 'UserThemeHandler', 'action' => 'display_post', 'priority' => 100, 'description' => 'Return entry matching specified slug', 'parameters' => serialize( array( 'require_match' => array('Posts', 'rewrite_match_type'), 'content_type'=>'entry', 'request_types' => array('display_post') ) ) ), array( 'name' => 'display_page', 'parse_regex' => '#^(?P<slug>[^/]+)(?:/page/(?P<page>\d+))?/?$#i', 'build_str' => '{$slug}(/page/{$page})', 'handler' => 'UserThemeHandler', 'action' => 'display_post', 'priority' => 100, 'description' => 'Return page matching specified slug', 'parameters' => serialize( array( 'require_match' => array('Posts', 'rewrite_match_type'), 'content_type'=>'page', 'request_types' => array('display_post') ) ) ),
On Friday, May 3, 2013 9:51:54 AM UTC+1, MatthewM wrote: > > Hopefully you can help, im working on a site atm and it is basically many > sites brought into one with sub pages. > > so for example > > mymainsite.com > mysite1.com > mysite2.com > mysite3.com > > will all be brought into and redirect to > > mymainsite.com/mysite1 > mymainsite.com/mysite2 > mymainsite.com/mysite3 > > but i want pages to have the url > > mymainsite.com/mysite1/apage > and > mymainsite.com/mysite1/anentry > or preferably > > mymainsite.com/mysite1/news/anentry > > now i ws thinking i could use tags so within the admin news entries for > mysite1 are tagged 'mysite1' so i can pull them out on the appropriate page > > > now how the hell do i make the rewrite rules work this way? or can you > suggest somethign better than tags? > > when i set up a page i give it an explicit slug which i then make a custom > page for (pages arent using the content part of the cms im hardcoding the > content for ease) but that does mean quite a few custom page files in the > theme > > > > cheers > -- -- To post to this group, send email to habari-users@googlegroups.com To unsubscribe from this group, send email to habari-users-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/habari-users --- You received this message because you are subscribed to the Google Groups "habari-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to habari-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.