Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blog in menu
#6
Not tested, but should work:
Code:
switch ($slug) {
    case 'blog1':
        $url = 'http://first_blog_address';
        break;
    case 'blog2':
        $url = 'http://second_blog_address';
        break;
    case 'blog3':
        $url = 'http://third_blog_address';
        break;
}

Add as many "case ... break;" blocks as you need.

Just like my previous example, insert the code almost at the end of /admin/inc/basic.php, just BEFORE this line:
Code:
return $url;

(Line 295 in GS 2.01; around 348 or so in beta 2.02...)

Edit: Of course, you have to create in GetSimple pages with slugs blog1, blog2 and blog3 -or whatever name you want-. No need to put content in those, it won't be displayed.
Reply


Messages In This Thread
Blog in menu - by richardhall - 2010-04-22, 07:40:52
Blog in menu - by richardhall - 2010-04-22, 22:50:50
Blog in menu - by Carlos - 2010-04-23, 03:30:29
Blog in menu - by richardhall - 2010-04-23, 08:26:28
Blog in menu - by phillphorrari - 2010-06-04, 23:09:39
Blog in menu - by Carlos - 2010-06-05, 00:13:51
Blog in menu - by phillphorrari - 2010-06-05, 00:32:41
Blog in menu - by Carlos - 2010-06-05, 00:36:48
Blog in menu - by phillphorrari - 2010-06-05, 01:57:49
Blog in menu - by Carlos - 2010-06-05, 02:22:24
Blog in menu - by Carlos - 2010-06-05, 15:55:21



Users browsing this thread: 1 Guest(s)